ai-youtube-transcript
Version:
Fetch and process transcripts from YouTube videos with support for multiple languages, translation, and formatting
55 lines (54 loc) • 1.75 kB
TypeScript
/**
* Base error class for YouTube transcript errors
*/
export declare class YoutubeTranscriptError extends Error {
constructor(message: string);
}
/**
* Error thrown when YouTube is receiving too many requests
*/
export declare class YoutubeTranscriptTooManyRequestError extends YoutubeTranscriptError {
constructor();
}
/**
* Error thrown when the video is no longer available
*/
export declare class YoutubeTranscriptVideoUnavailableError extends YoutubeTranscriptError {
constructor(videoId: string);
}
/**
* Error thrown when transcript is disabled on the video
*/
export declare class YoutubeTranscriptDisabledError extends YoutubeTranscriptError {
constructor(videoId: string);
}
/**
* Error thrown when no transcripts are available for the video
*/
export declare class YoutubeTranscriptNotAvailableError extends YoutubeTranscriptError {
constructor(videoId: string);
}
/**
* Error thrown when no transcripts are available in the requested language
*/
export declare class YoutubeTranscriptNotAvailableLanguageError extends YoutubeTranscriptError {
constructor(lang: string, availableLangs: string[], videoId: string);
}
/**
* Error thrown when the transcript cannot be translated
*/
export declare class YoutubeTranscriptTranslationError extends YoutubeTranscriptError {
constructor(message: string);
}
/**
* Error thrown when the request is blocked by YouTube
*/
export declare class YoutubeTranscriptRequestBlockedError extends YoutubeTranscriptError {
constructor();
}
/**
* Error thrown when the IP is blocked by YouTube
*/
export declare class YoutubeTranscriptIpBlockedError extends YoutubeTranscriptError {
constructor();
}