diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/Youtube.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 6c080c5..6a96595 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -2506,8 +2506,16 @@ R"END( void YoutubeVideoPage::get_subtitles(SubtitleData &subtitle_data) { auto it = subtitle_urls_by_lang_code.find("en"); - if(it != subtitle_urls_by_lang_code.end()) + if(it != subtitle_urls_by_lang_code.end()) { subtitle_data = it->second; + return; + } + + it = subtitle_urls_by_lang_code.find("en-US"); + if(it != subtitle_urls_by_lang_code.end()) { + subtitle_data = it->second; + return; + } } static bool parse_cipher_format(const Json::Value &format, YoutubeFormat &youtube_format) { |