1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[hentaihere] ensure consistent extraction results

sometimes there is a random space before the next <a>
This commit is contained in:
Mike Fährmann 2018-02-05 15:26:25 +01:00
parent 377b78b3c9
commit 7b5ba69951
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -40,10 +40,11 @@ class HentaihereMangaExtractor(MangaExtractor):
page, '<span class="mngType text-danger">[', ']</span>', pos)
while True:
url, pos = text.extract(
page, '<li class="sub-chp clearfix">\n<a href="', '"', pos)
if not url:
marker, pos = text.extract(
page, '<li class="sub-chp clearfix">', '', pos)
if marker is None:
return results
url, pos = text.extract(page, '<a href="', '"', pos)
chapter, pos = text.extract(page, 'title="Tagged: -">\n', '<', pos)
chapter_id, pos = text.extract(page, '/C', '"', pos)
chapter, _, title = text.unescape(chapter).strip().partition(" - ")