pub enum CouldNotRetrieveTranscriptReason {
Show 13 variants
TranscriptsDisabled,
NoTranscriptFound {
requested_language_codes: Vec<String>,
transcript_data: TranscriptList,
},
VideoUnavailable,
VideoUnplayable {
reason: Option<String>,
sub_reasons: Vec<String>,
},
IpBlocked(Option<Box<dyn ProxyConfig>>),
RequestBlocked(Option<Box<dyn ProxyConfig>>),
NotTranslatable,
TranslationLanguageNotAvailable,
FailedToCreateConsentCookie,
YouTubeRequestFailed(String),
InvalidVideoId,
AgeRestricted,
YouTubeDataUnparsable,
}
Expand description
§CouldNotRetrieveTranscriptReason
Detailed reasons why a transcript couldn’t be retrieved.
This enum provides specific information about why transcript retrieval failed, which is useful for error handling and providing helpful feedback to users.
Variants§
TranscriptsDisabled
Subtitles/transcripts are disabled for this video
NoTranscriptFound
No transcript was found in any of the requested languages
Fields
transcript_data: TranscriptList
Information about available transcripts that could be used instead
The video is no longer available (removed, private, etc.)
VideoUnplayable
The video cannot be played for some reason
Fields
IpBlocked(Option<Box<dyn ProxyConfig>>)
YouTube is blocking requests from your IP address
RequestBlocked(Option<Box<dyn ProxyConfig>>)
YouTube is blocking your request (rate limiting, etc.)
NotTranslatable
The requested transcript cannot be translated
TranslationLanguageNotAvailable
The requested translation language is not available
FailedToCreateConsentCookie
Failed to create a consent cookie required by YouTube
YouTubeRequestFailed(String)
The request to YouTube failed with a specific error
InvalidVideoId
The provided video ID is invalid
AgeRestricted
The video is age-restricted and requires authentication
YouTubeDataUnparsable
The YouTube data structure couldn’t be parsed