youtube-dl

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

commit 3a5beb0ca149cd0b1df5b29984033e20ccb85a61
parent a6da7b6b9657f621a927cb4c7bc46cf7c6c27b11
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 10 Aug 2014 17:53:17 +0700

[ard] Show error message for videos that are no longer available (#3422)

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

diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py @@ -51,6 +51,9 @@ class ARDIE(InfoExtractor): webpage = self._download_webpage(url, video_id) + if '>Der gewünschte Beitrag ist nicht mehr verfügbar.<' in webpage: + raise ExtractorError('Video %s is no longer available' % video_id, expected=True) + title = self._html_search_regex( [r'<h1(?:\s+class="boxTopHeadline")?>(.*?)</h1>', r'<meta name="dcterms.title" content="(.*?)"/>',