[pornhub] Use https (#21061)
authorNRTICN <50528161+NRTICN@users.noreply.github.com>
Wed, 22 May 2019 20:56:54 +0000 (20:56 +0000)
committerSergey M <dstftw@gmail.com>
Wed, 22 May 2019 20:56:54 +0000 (03:56 +0700)
youtube_dl/extractor/pornhub.py

index bf8f0be886eba04cad55e18d65dc3f3d1179d95d..cb59d526f9be7d7f4f033bed697bae363173ec98 100644 (file)
@@ -170,7 +170,7 @@ class PornHubIE(PornHubBaseIE):
         def dl_webpage(platform):
             self._set_cookie(host, 'platform', platform)
             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)
 
         webpage = dl_webpage('pc')