Alway set every cookies

This commit is contained in:
ache 2023-04-02 10:26:27 +02:00
commit e3aa7f903f
No known key found for this signature in database
GPG key ID: E15360EAE11E2A34

View file

@ -269,11 +269,8 @@ class PornHubIE(PornHubBaseIE):
# Setting multple cookies doesn't seem to be big deal so we prefere that solution instead # 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. # 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, 'age_verified', '1')
self._set_cookie(host, 'accessAgeDisclaimerPH', '1')
if 'thumbzilla.com' in host: self._set_cookie('thumbzilla.com', 'accessAgeDisclaimerTZ', '1')
self._set_cookie(host, 'accessAgeDisclaimerTZ', '1')
else:
self._set_cookie(host, 'accessAgeDisclaimerPH', '1')
def dl_webpage(platform): def dl_webpage(platform):
self._set_cookie(host, 'platform', platform) self._set_cookie(host, 'platform', platform)