From d99c8c132031fe34d09fd075045c95a692942b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 14 Feb 2026 09:17:48 +0100 Subject: [PATCH] [manganelo] fix 'manga' extractor (#9059) --- gallery_dl/extractor/manganelo.py | 54 ++++++++++++++++--------------- test/results/manganato.py | 2 -- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/gallery_dl/extractor/manganelo.py b/gallery_dl/extractor/manganelo.py index 6b68b83d..3ff51bc0 100644 --- a/gallery_dl/extractor/manganelo.py +++ b/gallery_dl/extractor/manganelo.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Copyright 2020 Jake Mannens -# Copyright 2021-2025 Mike Fährmann +# Copyright 2021-2026 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -96,34 +96,36 @@ class ManganeloMangaExtractor(ManganeloExtractor, MangaExtractor): def chapters(self, page): extr = text.extract_from(page) - manga = text.unescape(extr("

", "<")) - author = text.remove_html(extr("
  • Author(s) :", "")) - status = extr("
  • Status :", "<").strip() - update = self.parse_datetime(extr( - "
  • Last updated :", "<").strip(), "%b-%d-%Y %I:%M:%S %p") - tags = text.split_html(extr(">Genres :", "
  • "))[::2] + url = extr('property="og:url" content="', '"') + slug = url[url.rfind("/")+1:] + + info = { + "manga" : text.unescape(extr("

    ", "<")), + "manga_url" : url, + "manga_slug": slug, + "author": text.remove_html(extr("
  • Author(s) :", "
  • ")), + "status": extr("
  • Status :", "<").strip(), + "date_updated": self.parse_datetime(extr( + "
  • Last updated :", "<").strip(), "%b-%d-%Y %I:%M:%S %p"), + "tags" : text.split_html(extr(">Genres :", "
  • "))[::2], + "lang" : "en", + } + info["tags"].sort() + + base = url + "/" + url = f"{self.root}/api/manga/{slug}/chapters?limit=-1" results = [] - for chapter in text.extract_iter(page, '
    ', '
    '): - url, pos = text.extract(chapter, '', '', pos) - date, pos = text.extract(chapter, '