diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-25 02:25:01 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-25 03:28:46 +0200 |
commit | 48da6508416dd80c68c9213a242a2542af2574fe (patch) | |
tree | 80589c878b0fdfd03e5ee24b43b05b5a81c2cb1a | |
parent | 4b788a8f21f46c7e7d9d5186e37f887ad05277c4 (diff) |
Youtube: disable auto generated subtitles, change subtitle size
-rw-r--r-- | src/VideoPlayer.cpp | 4 | ||||
-rw-r--r-- | src/plugins/Youtube.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 8ed6170..98d187f 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -153,9 +153,9 @@ namespace QuickMedia { "--cache=yes", "--cache-on-disk=yes", "--cache-secs=86400", // 24 hours - "--sub-font-size=35", + "--sub-font-size=40", "--sub-margin-y=45", - "--sub-border-size=1.6", + "--sub-border-size=1.95", "--sub-border-color=0.01", cache_dir.c_str(), input_conf.c_str(), 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(); |