yaytt
Version:
Blazingly fast YouTube caption extractor with deduplication.
28 lines (27 loc) • 736 B
TypeScript
export interface Caption {
start: number;
dur: number;
text: string;
}
export interface CaptionOptions {
lang?: string;
retries?: number;
fallback?: boolean;
deduplicate?: boolean;
deduplicationOptions?: {
timeThreshold?: number;
similarityThreshold?: number;
mergePartialMatches?: boolean;
aggressiveMode?: boolean;
};
}
export interface ExtractorConfig {
userAgent?: string;
timeout?: number;
rateLimitDelay?: number;
}
export declare class CaptionExtractionError extends Error {
videoId?: string | undefined;
originalError?: Error | undefined;
constructor(message: string, videoId?: string | undefined, originalError?: Error | undefined);
}