From d9f59ec56ee7c97004b5778e4d594ffe74485fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 26 Jan 2025 11:23:13 +0100 Subject: [PATCH] [adultempire] bypass age confirmation check set 'ageConfirmed' cookie --- gallery_dl/extractor/adultempire.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/adultempire.py b/gallery_dl/extractor/adultempire.py index 1617414a..c891b17e 100644 --- a/gallery_dl/extractor/adultempire.py +++ b/gallery_dl/extractor/adultempire.py @@ -24,6 +24,9 @@ class AdultempireGalleryExtractor(GalleryExtractor): GalleryExtractor.__init__(self, match) self.gallery_id = match.group(2) + def _init(self): + self.cookies.set("ageConfirmed", "true", domain="www.adultempire.com") + def metadata(self, page): extr = text.extract_from(page, page.index('
')) return {