From 60ac3a6f856a2f16482e6f388706b998a09c33b0 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 26 Apr 2023 04:54:31 +0200 Subject: [PATCH] [PATCH] Set `accessPH` cookie Co-authored-by: bashonly Co-authored-by: Noah --- youtube_dl/extractor/pornhub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 294c27a0d..130e42866 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -66,6 +66,7 @@ class PornHubBaseIE(InfoExtractor): # of guessing the right cookie out of an IP we don't currently have. self._set_cookie(host, 'age_verified', '1') self._set_cookie(host, 'accessAgeDisclaimerPH', '1') + self._set_cookie(host, 'accessPH', '1') def _login(self, host): if self._logged_in: