From 108963d138dafc2c704de1a283cb741afa243a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 24 Jun 2019 21:30:53 +0200 Subject: [PATCH] [imagefap] include Referer headers --- gallery_dl/extractor/imagefap.py | 4 ++++ 1 file changed, 4 insertions(+) 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"""