mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-18 10:26:11 -05:00
[brightcove] Fix check for url in the result
It may have the ‘formats’ field instead of ‘url’.
This commit is contained in:
parent
bc4ba05fcb
commit
d614aa40e3
@ -230,6 +230,6 @@ class BrightcoveIE(InfoExtractor):
|
|||||||
else:
|
else:
|
||||||
return ad_info
|
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'])
|
raise ExtractorError('Unable to extract video url for %s' % info['id'])
|
||||||
return info
|
return info
|
||||||
|
Loading…
Reference in New Issue
Block a user