瀏覽代碼

[brightcove] Fix check for url in the result

It may have the ‘formats’ field instead of ‘url’.
Jaime Marquínez Ferrándiz 11 年之前
父節點
當前提交
d614aa40e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/brightcove.py

+ 1 - 1
youtube_dl/extractor/brightcove.py

@@ -230,6 +230,6 @@ class BrightcoveIE(InfoExtractor):
                 else:
                     return ad_info
 
-        if 'url' not in info:
+        if 'url' not in info and not info.get('formats'):
             raise ExtractorError('Unable to extract video url for %s' % info['id'])
         return info