aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-01-11 00:05:08 +0100
committerdec05eba <dec05eba@protonmail.com>2023-01-11 00:05:08 +0100
commitd0c13982cba9a3d04f0d3f4d2178b244c9b61ce9 (patch)
tree4fcef11543843fb0b962e417e8f2a9cf0670ad89 /src
parente08d5f4fd0a913d49c182c7aebec863da6e6d026 (diff)
Mangadex: filter out chapters that redirect to mangaplus
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Mangadex.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp
index f517869..06ea027 100644
--- a/src/plugins/Mangadex.cpp
+++ b/src/plugins/Mangadex.cpp
@@ -202,6 +202,10 @@ namespace QuickMedia {
if(!attributes_json.isObject())
continue;
+ const Json::Value &external_url_json = attributes_json["externalUrl"];
+ if(external_url_json.isString() && strstr(external_url_json.asCString(), "mangaplus"))
+ continue;
+
const Json::Value &translated_language_json = attributes_json["translatedLanguage"];
if(!translated_language_json.isString() || strcmp(translated_language_json.asCString(), "en") != 0)
continue;