mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 02:01:50 +00:00
[brightcove] improve error detection
This commit is contained in:
parent
38cce791c7
commit
dd801bbe18
1 changed files with 7 additions and 0 deletions
|
@ -585,6 +585,13 @@ class BrightcoveNewIE(InfoExtractor):
|
|||
'format_id': build_format_id('rtmp'),
|
||||
})
|
||||
formats.append(f)
|
||||
|
||||
errors = json_data.get('errors')
|
||||
if not formats and errors:
|
||||
error = errors[0]
|
||||
raise ExtractorError(
|
||||
error.get('message') or error.get('error_subcode') or error['error_code'], expected=True)
|
||||
|
||||
self._sort_formats(formats)
|
||||
|
||||
subtitles = {}
|
||||
|
|
Loading…
Reference in a new issue