Browse Source

[brightcove] improve error detection

master
Remita Amine 8 years ago
parent
commit
dd801bbe18
1 changed files with 7 additions and 0 deletions
  1. 7
      youtube_dl/extractor/brightcove.py

7
youtube_dl/extractor/brightcove.py

@ -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…
Cancel
Save