youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit aff84bec07fc1919591827543845790074b0194f
parent ac651e974ef8da74df35e5ac5464cc03e35bb2d1
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat,  4 Apr 2015 23:17:09 +0600

[drtv] Check for unavailable videos

Diffstat:
Myoutube_dl/extractor/drtv.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/drtv.py b/youtube_dl/extractor/drtv.py @@ -26,6 +26,10 @@ class DRTVIE(InfoExtractor): 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( r'data-(?:material-identifier|episode-slug)="([^"]+)"', webpage, 'video id')