aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/myhentaigallery.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/myhentaigallery.py')
-rw-r--r--gallery_dl/extractor/myhentaigallery.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gallery_dl/extractor/myhentaigallery.py b/gallery_dl/extractor/myhentaigallery.py
index f09507c..2a39dc9 100644
--- a/gallery_dl/extractor/myhentaigallery.py
+++ b/gallery_dl/extractor/myhentaigallery.py
@@ -20,12 +20,12 @@ class MyhentaigalleryGalleryExtractor(GalleryExtractor):
example = "https://myhentaigallery.com/g/12345"
def __init__(self, match):
- self.gallery_id = match.group(1)
- url = "{}/g/{}".format(self.root, self.gallery_id)
+ self.gallery_id = match[1]
+ url = f"{self.root}/g/{self.gallery_id}"
GalleryExtractor.__init__(self, match, url)
def _init(self):
- self.session.headers["Referer"] = self.gallery_url
+ self.session.headers["Referer"] = self.page_url
def metadata(self, page):
extr = text.extract_from(page)