From 7b5ba699518589b6116bc91cca1397ea88bb13a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 5 Feb 2018 15:26:25 +0100 Subject: [PATCH] [hentaihere] ensure consistent extraction results sometimes there is a random space before the next --- gallery_dl/extractor/hentaihere.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/hentaihere.py b/gallery_dl/extractor/hentaihere.py index c31f0525..48ebb2ea 100644 --- a/gallery_dl/extractor/hentaihere.py +++ b/gallery_dl/extractor/hentaihere.py @@ -40,10 +40,11 @@ class HentaihereMangaExtractor(MangaExtractor): page, '[', ']', pos) while True: - url, pos = text.extract( - page, '
  • \n', '', pos) + if marker is None: return results + url, pos = text.extract(page, '\n', '<', pos) chapter_id, pos = text.extract(page, '/C', '"', pos) chapter, _, title = text.unescape(chapter).strip().partition(" - ")