aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/VideoPlayer.cpp4
-rw-r--r--src/plugins/Youtube.cpp3
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();