1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 12:42:29 +01:00

[exhentai] accept "e-hentai.org" URLs (#11)

This commit is contained in:
Mike Fährmann 2017-04-04 09:30:35 +02:00
parent 11ce871718
commit b603b592cf
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -22,7 +22,7 @@ class ExhentaiGalleryExtractor(Extractor):
subcategory = "gallery"
directory_fmt = ["{category}", "{gallery-id}"]
filename_fmt = "{gallery-id}_{num:>04}_{image-token}_{name}.{extension}"
pattern = [r"(?:https?://)?(?:g\.e-|ex)hentai\.org/g/(\d+)/([\da-f]{10})"]
pattern = [r"(?:https?://)?(g\.e-|e-|ex)hentai\.org/g/(\d+)/([\da-f]{10})"]
test = [
("https://exhentai.org/g/960460/4f0e369d82/", {
"keyword": "623f8c86c9fe38e964682dd4309b96922655b900",
@ -41,7 +41,7 @@ class ExhentaiGalleryExtractor(Extractor):
Extractor.__init__(self)
self.key = {}
self.count = 0
self.gid, self.token = match.groups()
self.version, self.gid, self.token = match.groups()
self.original = config.interpolate(
("extractor", "exhentai", "original"), True)
self.wait_min = config.interpolate(