Skip to content

A feature-rich command-line audio/video downloader

[brightcove] Fix check for url in the result

Jaime Marquínez Ferrándizd614aa40e358
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index b873dc0d44..e13c040f8b 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