Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PornHub] Rename the age verification cookie #31916

Closed
wants to merge 8 commits into from
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions youtube_dl/extractor/pornhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,12 @@ def _real_extract(self, url):

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
dirkf marked this conversation as resolved.
Show resolved Hide resolved
# 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('thumbzilla.com', 'accessAgeDisclaimerTZ', '1')

def dl_webpage(platform):
self._set_cookie(host, 'platform', platform)
Expand Down