From 105e2379d479aba3f5acc643d4b4055b308767a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 27 Jan 2026 10:04:24 +0100 Subject: [PATCH] [pornhub] fix '400 Bad Request' when logged in (#8942) extract 'token' from a different location --- gallery_dl/extractor/pornhub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/pornhub.py b/gallery_dl/extractor/pornhub.py index d4ee3bc0..3dd8b2a6 100644 --- a/gallery_dl/extractor/pornhub.py +++ b/gallery_dl/extractor/pornhub.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2019-2025 Mike Fährmann +# Copyright 2019-2026 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -85,7 +85,7 @@ class PornhubGalleryExtractor(PornhubExtractor): extr = text.extract_from(self.request(url).text) title = extr("", "") - self._token = extr('name="token" value="', '"') + self._token = extr('data-token="', '"') score = extr('
', '<') tags = extr('