diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-05-17 22:19:33 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-05-17 22:20:25 +0700 |
commit | f2e2f0c777dc9e541d89b742ac12e7ad37d8cb8e (patch) | |
tree | 9e3fb6600b3980d740edc77004c8ba233e3800dc | |
parent | 6f766798049418c15e3c1b62c046e507093993dd (diff) |
[extractor/common] Fix rtmp and rtsp formats' URLs in _extract_wowza_formats
-rw-r--r-- | youtube_dl/extractor/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 74b6f1197..fec39da8b 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -2207,7 +2207,7 @@ class InfoExtractor(object): url = re.sub(r'/(?:manifest|playlist|jwplayer)\.(?:m3u8|f4m|mpd|smil)', '', url) url_base = self._search_regex( r'(?:(?:https?|rtmp|rtsp):)?(//[^?]+)', url, 'format url') - http_base_url = self._proto_relative_url(url_base, scheme='http:') + http_base_url = '%s:%s' % ('http', url_base) formats = [] if 'm3u8' not in skip_protocols: formats.extend(self._extract_m3u8_formats( @@ -2241,7 +2241,7 @@ class InfoExtractor(object): for protocol in ('rtmp', 'rtsp'): if protocol not in skip_protocols: formats.append({ - 'url': protocol + url_base, + 'url': '%s:%s' % (protocol, url_base), 'format_id': protocol, 'protocol': protocol, }) |