mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-20 16:15:41 +07: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 @@ def _extract_video_info(self, video_info):
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user