-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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] Unable to extract encoded url (part 2) #7590
Comments
Error is the same as #4299, which makes me think it could be a cookies issue. I can't reproduce the issue, which makes me think this could be a regional issue (again like #4299) @zhong-yiyu Could you open a private browsing tab in your browser, visit the video page, and share the cookies that are set for the site? (dev tools => Storage => Cookies) You can just copy/paste the names and values of the cookies |
I tried open the URL : https://cn.pornhub.com/view_video.php?viewkey=648ef5ef97f9e
|
I think this would fix it diff --git a/yt_dlp/extractor/pornhub.py b/yt_dlp/extractor/pornhub.py
index 2f5a572a5..11c14d08f 100644
--- a/yt_dlp/extractor/pornhub.py
+++ b/yt_dlp/extractor/pornhub.py
@@ -61,6 +61,7 @@ def _real_initialize(self):
def _set_age_cookies(self, host):
self._set_cookie(host, 'age_verified', '1')
self._set_cookie(host, 'accessAgeDisclaimerPH', '1')
+ self._set_cookie(host, 'accessAgeDisclaimerUK', '1')
self._set_cookie(host, 'accessPH', '1')
def _login(self, host): |
Amazing! This change really makes the download working again! |
@zhong-yiyu you can open a PR |
Closes #7590 Authored by: zhong-yiyu
Closes yt-dlp#7590 Authored by: zhong-yiyu
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
United Kingdom
Provide a description that is worded well enough to be understood
Using the most simple instruction, just
yt-dlp <url>
, when entering an pornhub video's URL. The yt-dlp tool reports error and not downloading the video.Also, when using it to download a model's entire collection on its personal page, the application returns 0 videos found on the page.
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: