aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/downloader/hls.py
diff options
context:
space:
mode:
authorFrancois Marier <francois@debian.org>2017-09-24 16:07:52 -0700
committerFrancois Marier <francois@debian.org>2017-09-24 16:07:52 -0700
commitaf014acd27e0b471d5903630847eabb26437b46c (patch)
treed4271577f7fe05b825a258087cffb0ca58809ec4 /youtube_dl/downloader/hls.py
parent1d04e265122c7ed6edf8f3c75a0619931b9368b9 (diff)
parent00368b4c3a5d4e909e1b7ecfc4030bf28da020f3 (diff)
downloadyoutube-dl-af014acd27e0b471d5903630847eabb26437b46c.zip
youtube-dl-af014acd27e0b471d5903630847eabb26437b46c.tar.gz
youtube-dl-af014acd27e0b471d5903630847eabb26437b46c.tar.bz2
Updated version 2017.09.24 from 'upstream/2017.09.24'
with Debian dir c72ecc29a35f1810042139775e38da3231fabe38
Diffstat (limited to 'youtube_dl/downloader/hls.py')
-rw-r--r--youtube_dl/downloader/hls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index 0e29c8a..46308cf 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -59,9 +59,9 @@ class HlsFD(FragmentFD):
man_url = info_dict['url']
self.to_screen('[%s] Downloading m3u8 manifest' % self.FD_NAME)
- manifest = self.ydl.urlopen(self._prepare_url(info_dict, man_url)).read()
-
- s = manifest.decode('utf-8', 'ignore')
+ urlh = self.ydl.urlopen(self._prepare_url(info_dict, man_url))
+ man_url = urlh.geturl()
+ s = urlh.read().decode('utf-8', 'ignore')
if not self.can_download(s, info_dict):
if info_dict.get('extra_param_to_segment_url'):