summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-03 13:25:49 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-03 13:25:49 +0100
commit233d37fb6b420b01315c48488c84dc5b6e7aaea0 (patch)
tree8c8e26df0f35431ca830a8488bcba14ca1226f27
parentc627f7d48c8e778958aaf03eb091364fbe12f2ca (diff)
downloadyoutube-dl-233d37fb6b420b01315c48488c84dc5b6e7aaea0.tar.gz
youtube-dl-233d37fb6b420b01315c48488c84dc5b6e7aaea0.tar.xz
youtube-dl-233d37fb6b420b01315c48488c84dc5b6e7aaea0.zip
[brightcove] Make sure that the 'ext' variable is set (fixes #4360)
-rw-r--r--youtube_dl/extractor/brightcove.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index 2db7f9fef..bf18a97e0 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 = None
                 if 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 manifests
                         url = 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({