From d0c13982cba9a3d04f0d3f4d2178b244c9b61ce9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 11 Jan 2023 00:05:08 +0100 Subject: Mangadex: filter out chapters that redirect to mangaplus --- src/plugins/Mangadex.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3