aboutsummaryrefslogtreecommitdiff
path: root/plugins/mangadex.py
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-01-11 00:09:56 +0100
committerdec05eba <dec05eba@protonmail.com>2023-01-11 00:09:56 +0100
commit544af2c58e600206b63048d50d804c76a94ce169 (patch)
treed6caf3c286aaa5969038d1750b25633561ab98c0 /plugins/mangadex.py
parent162d080ca521b7c6db9accc51a7c4d2db5e7f614 (diff)
Mangadex: filter out chapters that redirect to mangaplus
Diffstat (limited to 'plugins/mangadex.py')
-rwxr-xr-xplugins/mangadex.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mangadex.py b/plugins/mangadex.py
index 1b75097..0ade720 100755
--- a/plugins/mangadex.py
+++ b/plugins/mangadex.py
@@ -101,6 +101,11 @@ def list_chapters(url, chapter_list_input):
for data in data_list:
id = data["id"]
attributes = data["attributes"]
+
+ external_url = attributes.get("externalUrl", "")
+ if external_url and external_url.find("mangaplus") != -1:
+ continue;
+
if attributes["translatedLanguage"] != lang:
continue