mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
Update age verified cookies name logic
This commit is contained in:
parent
0b786108b5
commit
6fb9b53e5f
1 changed files with 5 additions and 0 deletions
|
@ -265,6 +265,11 @@ class PornHubIE(PornHubBaseIE):
|
||||||
|
|
||||||
self._login(host)
|
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:
|
if 'thumbzilla.com' in host:
|
||||||
self._set_cookie(host, 'accessAgeDisclaimerTZ', '1')
|
self._set_cookie(host, 'accessAgeDisclaimerTZ', '1')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue