From 544af2c58e600206b63048d50d804c76a94ce169 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 11 Jan 2023 00:09:56 +0100 Subject: Mangadex: filter out chapters that redirect to mangaplus --- TODO | 2 +- plugins/mangadex.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3