1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-19 05:59:23 +01:00

[pornhub] Use https (#21061)

This commit is contained in:
NRTICN 2019-05-22 20:56:54 +00:00 committed by Sergey M
parent bbf1defe58
commit 2c53c0ebc6

View File

@ -170,7 +170,7 @@ class PornHubIE(PornHubBaseIE):
def dl_webpage(platform): def dl_webpage(platform):
self._set_cookie(host, 'platform', platform) self._set_cookie(host, 'platform', platform)
return self._download_webpage( return self._download_webpage(
'http://www.%s/view_video.php?viewkey=%s' % (host, video_id), 'https://www.%s/view_video.php?viewkey=%s' % (host, video_id),
video_id, 'Downloading %s webpage' % platform) video_id, 'Downloading %s webpage' % platform)
webpage = dl_webpage('pc') webpage = dl_webpage('pc')