mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 14:47:49 +08:00
Update pornhub.py
This commit is contained in:
parent
41e4a7c93b
commit
e13ad4c368
@ -114,9 +114,10 @@ class PornHubIE(InfoExtractor):
|
||||
|
||||
def _real_extract(self, url):
|
||||
video_id = self._match_id(url)
|
||||
|
||||
self._set_cookie('pornhub.com', 'age_verified', '1')
|
||||
|
||||
def dl_webpage(platform):
|
||||
self._set_cookie('pornhub.com', 'age_verified', '1')
|
||||
self._set_cookie('pornhub.com', 'platform', platform)
|
||||
return self._download_webpage(
|
||||
'http://www.pornhub.com/view_video.php?viewkey=%s' % video_id,
|
||||
|
Loading…
Reference in New Issue
Block a user