summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/pornhub.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-07-15 17:08:47 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-07-15 17:08:47 -0400
commite2f67519f8c1750a71aab3dc56b8345fff21bac5 (patch)
tree26770e9b79821f2fa10ed3b07a4669f857db8071 /gallery_dl/extractor/pornhub.py
parentef30b1fa552fd4ceebdd14bbcc16f30f430883f8 (diff)
New upstream version 1.25.8.upstream/1.25.8
Diffstat (limited to 'gallery_dl/extractor/pornhub.py')
-rw-r--r--gallery_dl/extractor/pornhub.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gallery_dl/extractor/pornhub.py b/gallery_dl/extractor/pornhub.py
index f19e33c..fa4efa0 100644
--- a/gallery_dl/extractor/pornhub.py
+++ b/gallery_dl/extractor/pornhub.py
@@ -58,6 +58,9 @@ class PornhubGalleryExtractor(PornhubExtractor):
self._first = None
def items(self):
+ self.session.cookies.set(
+ "accessAgeDisclaimerPH", "1", domain=".pornhub.com")
+
data = self.metadata()
yield Message.Directory, data
for num, image in enumerate(self.images(), 1):