aboutsummaryrefslogtreecommitdiff
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
parent162d080ca521b7c6db9accc51a7c4d2db5e7f614 (diff)
Mangadex: filter out chapters that redirect to mangaplus
-rw-r--r--TODO2
-rwxr-xr-xplugins/mangadex.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/TODO b/TODO
index 6a52844..fb9449b 100644
--- a/TODO
+++ b/TODO
@@ -10,4 +10,4 @@ Make downloading manga asynchronous, just like torrents. And have timeout for do
Detect if a website is very slow (timeout?) and ignore sync for that website for the current sync. This is to prevent a slow website from preventing all syncs..
Cleanup command should remove torrents from transmission.
Remove dirname because it breaks automedia.pid because it modified /proc/.../cmdline. Should also do readlink on the first arg of cmdline (which doesn't work if automedia is in /usr/bin???). Use socket! look at quickmedia.
-
+Some mangadex chapters redirect to mangaplus. Those should redirect to the mangaplus plugin. Right now they are simply skipped. \ No newline at end of file
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