From 781fdfa212094ad8e52a3f03f46f47dcae8f15c9 Mon Sep 17 00:00:00 2001 From: dragobit <97995130+dragobit@users.noreply.github.com> Date: Tue, 1 Mar 2022 06:19:32 +0900 Subject: [PATCH] [hentaicosplays] add Referer to headers (#2317) --- gallery_dl/extractor/hentaicosplays.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery_dl/extractor/hentaicosplays.py b/gallery_dl/extractor/hentaicosplays.py index 7dd047c6..b4f433b1 100644 --- a/gallery_dl/extractor/hentaicosplays.py +++ b/gallery_dl/extractor/hentaicosplays.py @@ -57,6 +57,7 @@ class HentaicosplaysGalleryExtractor(GalleryExtractor): self.root = text.ensure_http_scheme(root) url = "{}/story/{}/".format(self.root, self.slug) GalleryExtractor.__init__(self, match, url) + self.session.headers["Referer"] = url def metadata(self, page): title = text.extract(page, "", "")[0]