Kakulukian / youtube-transcript

Fetch transcript from a youtube video
308 stars 61 forks source link

Add multi-language preference support #29

Open Jonathan-Asher opened 5 months ago

Jonathan-Asher commented 5 months ago

This PR adds support for multiple languages in the TranscriptConfig, so that you can provide an ordered array of preferred languages in case the video has a few. This also helps prevent YoutubeTranscriptNotAvailableLanguageError errors by allowing an array of optional languages in the TranscriptConfig.