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