diff options
-rwxr-xr-x | plugins/manganelo.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/manganelo.py b/plugins/manganelo.py index 37d2777..0745321 100755 --- a/plugins/manganelo.py +++ b/plugins/manganelo.py @@ -102,6 +102,9 @@ def redirect_migrated_url(url, tree, is_chapter): def list_chapters(url, chapter_list_input): url = url.replace("mangakakalot", "manganelo").replace("manganelo", "nelomanga") response = requests.get(url, timeout=30, headers=headers) + if not response.ok: + url = url.replace("_", "-") + response = requests.get(url, timeout=30, headers=headers) response.raise_for_status() seen_titles = set() |