[hbrowse] fix syntax for Python3.3 and 3.4

This commit is contained in:
Mike Fährmann
2017-09-20 16:41:39 +02:00
parent a9e7145651
commit c265cc074a

View File

@@ -54,10 +54,9 @@ class HbrowseMangaExtractor(MangaExtractor, HbrowseExtractor):
if not url:
return results
title, pos = text.extract(page, '>View ', '<', pos)
results.append((url, {
"chapter": int(url.rpartition("/")[2][1:]),
"title": title, **data
}))
data["chapter"] = int(url.rpartition("/")[2][1:])
data["title"] = title
results.append((url, data.copy()))
class HbrowseChapterExtractor(HbrowseExtractor):