|
|
@ -115,12 +115,13 @@ 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._set_cookie('pornhub.com', 'age_verified', '1')
|
|
|
|
|
|
|
|
|
|
|
|
def dl_webpage(platform):
|
|
|
|
def dl_webpage(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,
|
|
|
|
video_id, headers={
|
|
|
|
video_id)
|
|
|
|
'Cookie': 'age_verified=1; platform=%s' % platform,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
webpage = dl_webpage('pc')
|
|
|
|
webpage = dl_webpage('pc')
|
|
|
|
|
|
|
|
|
|
|
|