[bbc] Add check for removed video
This commit is contained in:
parent
a919ca0ad6
commit
442dc4f061
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user