[hentaihere] ensure consistent extraction results

sometimes there is a random space before the next <a>
pull/79/head
Mike Fährmann 7 years ago
parent 377b78b3c9
commit 7b5ba69951
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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(" - ")

Loading…
Cancel
Save