projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24e966e
)
[downloader/hls] Use redirect URL as manifest base (#13755)
author
Sergey M․
<dstftw@gmail.com>
Sat, 29 Jul 2017 08:02:41 +0000
(15:02 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 29 Jul 2017 08:02:41 +0000
(15:02 +0700)
youtube_dl/downloader/hls.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/hls.py
b/youtube_dl/downloader/hls.py
index 0e29c8a2ad2559737d8c0210e9c6784310616ec6..46308cf072c25086d896bb759adad10a74d2cfc6 100644
(file)
--- 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'):