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:
parent
2d0cfb33e1
commit
305da540c3
@ -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 {
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user