From 22ec1aad9ab01ba046122d87a33e925be7cb0f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 18 Jul 2025 19:08:55 +0200 Subject: [PATCH] [pornhub] fix 'gallery' extractor (#7842) - update API endpoint - extract and send 'token' parameter --- gallery_dl/extractor/pornhub.py | 9 +++++---- test/results/pornhub.py | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/pornhub.py b/gallery_dl/extractor/pornhub.py index f6cff58b..12113972 100644 --- a/gallery_dl/extractor/pornhub.py +++ b/gallery_dl/extractor/pornhub.py @@ -85,6 +85,7 @@ class PornhubGalleryExtractor(PornhubExtractor): extr = text.extract_from(self.request(url).text) title = extr("", "") + self._token = extr('name="token" value="', '"') score = extr('
', '<') tags = extr('