t-youtube-transcript-fetcher
Version:
An enhanced TypeScript library for fetching YouTube transcripts with proxy support (based on youtube-transcript)
37 lines (36 loc) • 1.03 kB
TypeScript
/**
* Base error class for YouTube transcript errors
*/
export declare class TranscriptError extends Error {
constructor(message: string);
}
/**
* Error thrown when YouTube's rate limit is exceeded
*/
export declare class RateLimitError extends TranscriptError {
constructor();
}
/**
* Error thrown when the requested video does not exist or is private
*/
export declare class VideoUnavailableError extends TranscriptError {
constructor(videoId: string);
}
/**
* Error thrown when transcripts are disabled for the video
*/
export declare class TranscriptDisabledError extends TranscriptError {
constructor(videoId: string);
}
/**
* Error thrown when no transcripts exist for the video
*/
export declare class NoTranscriptError extends TranscriptError {
constructor(videoId: string);
}
/**
* Error thrown when the requested language is not available
*/
export declare class LanguageNotFoundError extends TranscriptError {
constructor(lang: string, availableLangs: string[], videoId: string);
}