aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-25 02:25:01 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-25 03:28:46 +0200
commit48da6508416dd80c68c9213a242a2542af2574fe (patch)
tree80589c878b0fdfd03e5ee24b43b05b5a81c2cb1a /src/plugins
parent4b788a8f21f46c7e7d9d5186e37f887ad05277c4 (diff)
Youtube: disable auto generated subtitles, change subtitle size
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Youtube.cpp3
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();