diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Youtube.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 2b2a7ee..4934c43 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -2320,7 +2320,8 @@ namespace QuickMedia { const Json::Value &base_url_json = caption_track["baseUrl"]; const Json::Value &language_code_json = caption_track["languageCode"]; - if(!base_url_json.isString() || !language_code_json.isString()) + const Json::Value &kind_json = caption_track["kind"]; // kind = asr = auto generated subtitles. We dont want those! + if(!base_url_json.isString() || !language_code_json.isString() || (kind_json.isString() && strcmp(kind_json.asCString(), "asr") == 0)) continue; std::string base_url = base_url_json.asString(); |