Update age verified cookies name logic

This commit is contained in:
ache 2023-03-30 04:13:04 +02:00
commit 6fb9b53e5f
No known key found for this signature in database
GPG key ID: E15360EAE11E2A34

View file

@ -265,6 +265,11 @@ class PornHubIE(PornHubBaseIE):
self._login(host)
# The age verification cookie may have a different name based on the location.
# Setting multple cookies doesn't seem to be big deal so we prefere that solution instead
# of guessing the right cookie out of an IP we don't currently have.
self._set_cookie(host, 'age_verified', '1')
if 'thumbzilla.com' in host:
self._set_cookie(host, 'accessAgeDisclaimerTZ', '1')
else: