From: Jaime Marquínez Ferrándiz Date: Tue, 21 Jan 2014 20:53:10 +0000 (+0100) Subject: [brightcove] Fix check for url in the result X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d614aa40e35825e1cde7c92fc6092d226afe4898;p=youtube-dl [brightcove] Fix check for url in the result It may have the ‘formats’ field instead of ‘url’. --- diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index b873dc0d4..e13c040f8 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/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