diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-06-26 22:11:09 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-06-26 22:11:09 +0700 |
commit | 33ffb645a6881744f8befcb813ef1f5b6958d385 (patch) | |
tree | 88cc23d3422ca703f49d29a2c479607821a65bf1 /youtube_dl/extractor | |
parent | 35544690e4f4fb1b8184e57d9c6c54fe893e6a3b (diff) |
[pandatv] Switch to https for API and download URLs
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/pandatv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/pandatv.py b/youtube_dl/extractor/pandatv.py index a5ed49449..c86d70771 100644 --- a/youtube_dl/extractor/pandatv.py +++ b/youtube_dl/extractor/pandatv.py @@ -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, |