[hentaihere] ensure consistent extraction results
sometimes there is a random space before the next <a>
This commit is contained in:
@@ -40,10 +40,11 @@ class HentaihereMangaExtractor(MangaExtractor):
|
|||||||
page, '<span class="mngType text-danger">[', ']</span>', pos)
|
page, '<span class="mngType text-danger">[', ']</span>', pos)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
url, pos = text.extract(
|
marker, pos = text.extract(
|
||||||
page, '<li class="sub-chp clearfix">\n<a href="', '"', pos)
|
page, '<li class="sub-chp clearfix">', '', pos)
|
||||||
if not url:
|
if marker is None:
|
||||||
return results
|
return results
|
||||||
|
url, pos = text.extract(page, '<a href="', '"', pos)
|
||||||
chapter, pos = text.extract(page, 'title="Tagged: -">\n', '<', pos)
|
chapter, pos = text.extract(page, 'title="Tagged: -">\n', '<', pos)
|
||||||
chapter_id, pos = text.extract(page, '/C', '"', pos)
|
chapter_id, pos = text.extract(page, '/C', '"', pos)
|
||||||
chapter, _, title = text.unescape(chapter).strip().partition(" - ")
|
chapter, _, title = text.unescape(chapter).strip().partition(" - ")
|
||||||
|
|||||||
Reference in New Issue
Block a user