0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 01:25:11 +00:00

[brightcove] Fix check for url in the result

It may have the ‘formats’ field instead of ‘url’.
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-01-21 21:53:10 +01:00
parent bc4ba05fcb
commit d614aa40e3

View file

@ -230,6 +230,6 @@ def _extract_video_info(self, video_info):
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