[mangamint] fix keyword extraction

This commit is contained in:
Mike Fährmann
2017-02-01 00:05:41 +01:00
parent 4f123b8513
commit f1b7d41608

View File

@@ -97,8 +97,8 @@ class MangamintChapterExtractor(MangamintExtractor):
def get_job_metadata(self, page):
"""Collect metadata for extractor-job"""
manga, pos = text.extract(page, '"title":"', '"')
chid , pos = text.extract(page, r'"identifier":"node\/', '"', pos)
manga, pos = text.extract(page, 'selected="selected">', '<')
chid , pos = text.extract(page, 'id="node-', '"', pos)
match = re.match(r"(.+) (\d+)([^ ]*)$", manga)
return {
"manga": match.group(1),