mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2026-05-03 04:03:30 +00:00
[brightcove] Fix check for url in the result
It may have the ‘formats’ field instead of ‘url’.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user