[doujinmode] small fixes + test
This commit is contained in:
@@ -43,8 +43,8 @@ Supported Sites
|
|||||||
mangapark.me, mangareader.net, mangashare.com, mangastream.com,
|
mangapark.me, mangareader.net, mangashare.com, mangastream.com,
|
||||||
powermanga.org, raw.senmanga.com, thespectrum.net
|
powermanga.org, raw.senmanga.com, thespectrum.net
|
||||||
* Hentai:
|
* Hentai:
|
||||||
exhentai.org, hbrowse.com, hentai2read.com, hentai-foundry.com, hitomi.la,
|
doujinmode.net, exhentai.org, hbrowse.com, hentai2read.com,
|
||||||
luscious.net, nhentai.net
|
hentai-foundry.com, hitomi.la, luscious.net, nhentai.net
|
||||||
* Japanese:
|
* Japanese:
|
||||||
pixiv.net, nijie.info
|
pixiv.net, nijie.info
|
||||||
* Western:
|
* Western:
|
||||||
|
|||||||
@@ -17,7 +17,13 @@ class DoujinmodeChapterExtractor(Extractor):
|
|||||||
category = "doujinmode"
|
category = "doujinmode"
|
||||||
directory_fmt = ["{category}", "{title}"]
|
directory_fmt = ["{category}", "{title}"]
|
||||||
filename_fmt = "{num:>03}.{extension}"
|
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/"
|
url_base = "http://doujinmode.net/mangas/"
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
@@ -40,7 +46,7 @@ class DoujinmodeChapterExtractor(Extractor):
|
|||||||
return {
|
return {
|
||||||
"category": self.category,
|
"category": self.category,
|
||||||
"gallery-id": self.gid,
|
"gallery-id": self.gid,
|
||||||
"title": title,
|
"title": text.unescape(title),
|
||||||
"count": count,
|
"count": count,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user