aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Mangadex.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-07-15 12:48:38 +0200
committerdec05eba <dec05eba@protonmail.com>2022-07-15 12:48:38 +0200
commit6758cdc82e4cb295123b0a84819c6a6ebd5ebad0 (patch)
tree86ed3a0db9134d72937c813ab037688e581766c4 /src/plugins/Mangadex.cpp
parent0bf55deae8d8a681b32a1fa91908ed1f566dbbf5 (diff)
Youtube: do not autoplay next if starting qm with youtube url, opening youtube url in info page or matrix
Diffstat (limited to 'src/plugins/Mangadex.cpp')
-rw-r--r--src/plugins/Mangadex.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp
index 2efd2f1..c100b0b 100644
--- a/src/plugins/Mangadex.cpp
+++ b/src/plugins/Mangadex.cpp
@@ -107,8 +107,11 @@ namespace QuickMedia {
std::string title;
const Json::Value &title_en_json = title_json["en"];
+ const Json::Value &title_ja_json = title_json["ja"];
if(title_en_json.isString())
title = title_en_json.asString();
+ else if(title_ja_json.isString())
+ title = title_ja_json.asString();
else
title = "No title"; // TODO: Verify if this happens. If it happens, get the title in any available language