mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[brightcove] Make sure that the 'ext' variable is set (fixes #4360)
This commit is contained in:
parent
c627f7d48c
commit
233d37fb6b
@ -265,6 +265,7 @@ def _extract_video_info(self, video_info):
|
|||||||
url = rend['defaultURL']
|
url = rend['defaultURL']
|
||||||
if not url:
|
if not url:
|
||||||
continue
|
continue
|
||||||
|
ext = None
|
||||||
if rend['remote']:
|
if rend['remote']:
|
||||||
url_comp = compat_urllib_parse_urlparse(url)
|
url_comp = compat_urllib_parse_urlparse(url)
|
||||||
if url_comp.path.endswith('.m3u8'):
|
if url_comp.path.endswith('.m3u8'):
|
||||||
@ -276,7 +277,7 @@ def _extract_video_info(self, video_info):
|
|||||||
# akamaihd.net, but they don't use f4m manifests
|
# akamaihd.net, but they don't use f4m manifests
|
||||||
url = url.replace('control/', '') + '?&v=3.3.0&fp=13&r=FEEFJ&g=RTSJIMBMPFPB'
|
url = url.replace('control/', '') + '?&v=3.3.0&fp=13&r=FEEFJ&g=RTSJIMBMPFPB'
|
||||||
ext = 'flv'
|
ext = 'flv'
|
||||||
else:
|
if ext is None:
|
||||||
ext = determine_ext(url)
|
ext = determine_ext(url)
|
||||||
size = rend.get('size')
|
size = rend.get('size')
|
||||||
formats.append({
|
formats.append({
|
||||||
|
Loading…
Reference in New Issue
Block a user