mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 06:14:05 -07:00
Alway set every cookies
This commit is contained in:
parent
6fb9b53e5f
commit
e3aa7f903f
1 changed files with 2 additions and 5 deletions
|
@ -269,11 +269,8 @@ class PornHubIE(PornHubBaseIE):
|
|||
# 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:
|
||||
self._set_cookie(host, 'accessAgeDisclaimerPH', '1')
|
||||
self._set_cookie(host, 'accessAgeDisclaimerPH', '1')
|
||||
self._set_cookie('thumbzilla.com', 'accessAgeDisclaimerTZ', '1')
|
||||
|
||||
def dl_webpage(platform):
|
||||
self._set_cookie(host, 'platform', platform)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue