From 305da540c3f4869e06398894360bdc30bea2a696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 3 Nov 2017 14:54:46 +0100 Subject: [PATCH] [mangahere] fix metadata extraction --- gallery_dl/extractor/mangahere.py | 5 ++--- test/test_extractors.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/mangahere.py b/gallery_dl/extractor/mangahere.py index 2e6d1fa3..aea52628 100644 --- a/gallery_dl/extractor/mangahere.py +++ b/gallery_dl/extractor/mangahere.py @@ -92,9 +92,8 @@ class MangahereChapterExtractor(AsynchronousExtractor): """Collect metadata for extractor-job""" manga, pos = text.extract(page, '', '') chid , pos = text.extract(page, '.net/store/manga/', '/', pos) - _ , pos = text.extract(page, '', pos) + count = re.findall(r">(\d+)<", pages)[-1] manga = re.match((r"(.+) \d+(\.\d+)? - Read .+ Chapter " r"\d+(\.\d+)? Online"), manga).group(1) return { diff --git a/test/test_extractors.py b/test/test_extractors.py index 2fb7cf0b..d3e23e87 100644 --- a/test/test_extractors.py +++ b/test/test_extractors.py @@ -73,8 +73,8 @@ skip = [ "exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie", "archivedmoe", "archiveofsins", "thebarchive", # temporary issues - "imgtrex", - "loveisover", # certificate verify failed + "nyafuu", + "mangazuki", ] # enable selective testing for direct calls if __name__ == '__main__' and len(sys.argv) > 1: