[bbc] Add check for removed video

This commit is contained in:
einstein95 2017-06-29 20:57:29 +12:00
parent a919ca0ad6
commit 442dc4f061

View File

@ -526,6 +526,9 @@ class BBCCoUkIE(InfoExtractor):
programme_id = None
duration = None
if 'is not currently available' in webpage:
raise ExtractorError('Video not available', expected=True)
tviplayer = self._search_regex(
r'mediator\.bind\(({.+?})\s*,\s*document\.getElementById',
webpage, 'player', default=None)