[hentai2read] fix and update keywords

Added the "author" keyword and changed the name of a few others to be
consistent with other manga/chapter extractors.
This commit is contained in:
Mike Fährmann
2017-08-22 13:51:00 +02:00
parent c45770331a
commit e61a3a56d1
4 changed files with 16 additions and 14 deletions

View File

@@ -16,8 +16,8 @@ import json
class HentaicdnChapterExtractor(Extractor):
"""Base class for extractors for a single manga chapter"""
subcategory = "chapter"
directory_fmt = ["{category}", "{gallery-id} {title}"]
filename_fmt = ("{category}_{gallery-id}_{chapter:>02}_"
directory_fmt = ["{category}", "{manga-id} {title}"]
filename_fmt = ("{category}_{manga-id}_{chapter:>02}_"
"{num:>03}.{extension}")
url = ""
@@ -27,8 +27,7 @@ class HentaicdnChapterExtractor(Extractor):
data = self.get_job_metadata(page, images)
yield Message.Version, 1
yield Message.Directory, data
for num, part in enumerate(images, 1):
data["num"] = num
for data["num"], part in enumerate(images, 1):
url = "https://hentaicdn.com/hentai" + part
yield Message.Url, url, text.nameext_from_url(url, data)