diff --git a/gallery_dl/extractor/imagefap.py b/gallery_dl/extractor/imagefap.py index 296d4e57..152b6318 100644 --- a/gallery_dl/extractor/imagefap.py +++ b/gallery_dl/extractor/imagefap.py @@ -21,6 +21,10 @@ class ImagefapExtractor(Extractor): archive_fmt = "{gallery_id}_{image_id}" root = "https://www.imagefap.com" + def __init__(self, match): + Extractor.__init__(self, match) + self.session.headers["Referer"] = self.root + class ImagefapGalleryExtractor(ImagefapExtractor): """Extractor for image galleries from imagefap.com"""