[pandatv] Switch to https for API and download URLs
authorSergey M․ <dstftw@gmail.com>
Mon, 26 Jun 2017 15:11:09 +0000 (22:11 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 26 Jun 2017 15:11:09 +0000 (22:11 +0700)
youtube_dl/extractor/pandatv.py

index a5ed494493c6e8994cb354272de737c4274dba5e..c86d7077127e2da252bd90db257bc152aa18e166 100644 (file)
@@ -33,7 +33,7 @@ class PandaTVIE(InfoExtractor):
         video_id = self._match_id(url)
 
         config = self._download_json(
-            'http://www.panda.tv/api_room?roomid=%s' % video_id, video_id)
+            'https://www.panda.tv/api_room?roomid=%s' % video_id, video_id)
 
         error_code = config.get('errno', 0)
         if error_code is not 0:
@@ -77,7 +77,7 @@ class PandaTVIE(InfoExtractor):
                 continue
             for pref, (ext, pl) in enumerate((('m3u8', '-hls'), ('flv', ''))):
                 formats.append({
-                    'url': 'http://pl%s%s.live.panda.tv/live_panda/%s%s%s.%s'
+                    'url': 'https://pl%s%s.live.panda.tv/live_panda/%s%s%s.%s'
                     % (pl, plflag1, room_key, live_panda, suffix[quality], ext),
                     'format_id': '%s-%s' % (k, ext),
                     'quality': quality,