mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/common] Respect secure schemes in _extract_wowza_formats
This commit is contained in:
parent
b9b150def7
commit
240f26229d
1 changed files with 4 additions and 3 deletions
|
@ -2250,9 +2250,10 @@ def _extract_akamai_formats(self, manifest_url, video_id, hosts={}):
|
||||||
def _extract_wowza_formats(self, url, video_id, m3u8_entry_protocol='m3u8_native', skip_protocols=[]):
|
def _extract_wowza_formats(self, url, video_id, m3u8_entry_protocol='m3u8_native', skip_protocols=[]):
|
||||||
query = compat_urlparse.urlparse(url).query
|
query = compat_urlparse.urlparse(url).query
|
||||||
url = re.sub(r'/(?:manifest|playlist|jwplayer)\.(?:m3u8|f4m|mpd|smil)', '', url)
|
url = re.sub(r'/(?:manifest|playlist|jwplayer)\.(?:m3u8|f4m|mpd|smil)', '', url)
|
||||||
url_base = self._search_regex(
|
mobj = re.search(
|
||||||
r'(?:(?:https?|rtmp|rtsp):)?(//[^?]+)', url, 'format url')
|
r'(?:(?:http|rtmp|rtsp)(?P<s>s)?:)?(?P<url>//[^?]+)', url)
|
||||||
http_base_url = '%s:%s' % ('http', url_base)
|
url_base = mobj.group('url')
|
||||||
|
http_base_url = '%s%s:%s' % ('http', mobj.group('s') or '', url_base)
|
||||||
formats = []
|
formats = []
|
||||||
|
|
||||||
def manifest_url(manifest):
|
def manifest_url(manifest):
|
||||||
|
|
Loading…
Reference in a new issue