Skip to content

Commit

Permalink
[exhentai] accept "e-hentai.org" URLs (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 4, 2017
1 parent 11ce871 commit b603b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/exhentai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -41,7 +41,7 @@ def __init__(self, match):
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(
Expand Down

0 comments on commit b603b59

Please sign in to comment.