diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-01-11 00:05:08 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-01-11 00:05:08 +0100 |
commit | d0c13982cba9a3d04f0d3f4d2178b244c9b61ce9 (patch) | |
tree | 4fcef11543843fb0b962e417e8f2a9cf0670ad89 /src/plugins | |
parent | e08d5f4fd0a913d49c182c7aebec863da6e6d026 (diff) |
Mangadex: filter out chapters that redirect to mangaplus
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Mangadex.cpp | 4 |
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; |