1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[mangahere] fix metadata extraction

This commit is contained in:
Mike Fährmann 2017-11-03 14:54:46 +01:00
parent 2d0cfb33e1
commit 305da540c3
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 4 additions and 5 deletions

View File

@ -92,9 +92,8 @@ class MangahereChapterExtractor(AsynchronousExtractor):
"""Collect metadata for extractor-job"""
manga, pos = text.extract(page, '<title>', '</title>')
chid , pos = text.extract(page, '.net/store/manga/', '/', pos)
_ , pos = text.extract(page, '<select class="wid60"', '', pos)
_ , pos = text.extract(page, '</select>', '', pos)
count, pos = text.extract(page, '>', '<', pos-30)
pages, pos = text.extract(page, ' class="wid60"', '</select>', pos)
count = re.findall(r">(\d+)<", pages)[-1]
manga = re.match((r"(.+) \d+(\.\d+)? - Read .+ Chapter "
r"\d+(\.\d+)? Online"), manga).group(1)
return {

View File

@ -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: