diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index c576174ea0..0717565377 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -33,6 +33,7 @@ def __init__(self, match): self.cookiedomain = ".coomer.party" self.root = text.root_from_url(match.group(0)) Extractor.__init__(self, match) + self.session.headers["Referer"] = self.root + "/" def items(self): self._prepare_ddosguard_cookies() @@ -63,6 +64,8 @@ def items(self): for post in posts: + headers["Referer"] = "{}/{}/user/{}/post/{}".format( + self.root, post["service"], post["user"], post["id"]) post["_http_headers"] = headers post["date"] = text.parse_datetime( post["published"] or post["added"],