[doujinmode] small fixes + test

pull/13/head
Mike Fährmann 8 years ago
parent 25f56c9061
commit 5a13ac8e3d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -43,8 +43,8 @@ Supported Sites
mangapark.me, mangareader.net, mangashare.com, mangastream.com,
powermanga.org, raw.senmanga.com, thespectrum.net
* Hentai:
exhentai.org, hbrowse.com, hentai2read.com, hentai-foundry.com, hitomi.la,
luscious.net, nhentai.net
doujinmode.net, exhentai.org, hbrowse.com, hentai2read.com,
hentai-foundry.com, hitomi.la, luscious.net, nhentai.net
* Japanese:
pixiv.net, nijie.info
* Western:

@ -17,7 +17,13 @@ class DoujinmodeChapterExtractor(Extractor):
category = "doujinmode"
directory_fmt = ["{category}", "{title}"]
filename_fmt = "{num:>03}.{extension}"
pattern = [r"(?:https?://)?(?:www\.)?doujinmode\.net/(?:hentai/)?mangas/([0-9a-f]{36})"]
pattern = [(r"(?:https?://)?(?:www\.)?doujinmode\.net/"
r"(?:hentai/|yaoi/|western/)?mangas/([0-9a-f]{36})")]
test = [("http://doujinmode.net/mangas/967836c988a716e9efca06998b7838d09eb5", {
"url": "be5d48a9fd48f09cfcc5d4e51f24bf1100e75502",
"keyword": "710cc9599faf563b0cad836bbc7d85b288fcda3a",
"content": "a041114e2a8af54d42a4a46a69cae4ebf2641cb1",
})]
url_base = "http://doujinmode.net/mangas/"
def __init__(self, match):
@ -40,7 +46,7 @@ class DoujinmodeChapterExtractor(Extractor):
return {
"category": self.category,
"gallery-id": self.gid,
"title": title,
"title": text.unescape(title),
"count": count,
}

Loading…
Cancel
Save