A feature-rich command-line audio/video downloader
[brightcove] Make sure that the 'ext' variable is set (fixes #4360)
Jaime Marquínez Ferrándiz233d37fb6b42
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.pyindex 2db7f9fef4..bf18a97e04 100644--- a/youtube_dl/extractor/brightcove.py+++ b/youtube_dl/extractor/brightcove.py@@ -265,6 +265,7 @@ class BrightcoveIE(InfoExtractor):url = rend['defaultURL']if not url:continue+ ext = Noneif rend['remote']:url_comp = compat_urllib_parse_urlparse(url)if url_comp.path.endswith('.m3u8'):@@ -276,7 +277,7 @@ class BrightcoveIE(InfoExtractor):# akamaihd.net, but they don't use f4m manifestsurl = url.replace('control/', '') + '?&v=3.3.0&fp=13&r=FEEFJ&g=RTSJIMBMPFPB'ext = 'flv'- else:+ if ext is None:ext = determine_ext(url)size = rend.get('size')formats.append({