mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-28 02:06:51 +01:00
[drtv] Check for unavailable videos
This commit is contained in:
parent
ac651e974e
commit
aff84bec07
@ -26,6 +26,10 @@ class DRTVIE(InfoExtractor):
|
|||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
if '>Programmet er ikke længere tilgængeligt' in webpage:
|
||||||
|
raise ExtractorError(
|
||||||
|
'Video %s is not available' % video_id, expected=True)
|
||||||
|
|
||||||
video_id = self._search_regex(
|
video_id = self._search_regex(
|
||||||
r'data-(?:material-identifier|episode-slug)="([^"]+)"',
|
r'data-(?:material-identifier|episode-slug)="([^"]+)"',
|
||||||
webpage, 'video id')
|
webpage, 'video id')
|
||||||
|
Loading…
Reference in New Issue
Block a user