From: remitamine Date: Thu, 5 Nov 2015 17:01:13 +0000 (+0100) Subject: raise ExtractorError if the page doesn't contain a video X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=967c9076a31ca2a2b43fb71082ad1a8db88116bd;p=youtube-dl raise ExtractorError if the page doesn't contain a video --- diff --git a/youtube_dl/extractor/flickr.py b/youtube_dl/extractor/flickr.py index e97754d36..92d2ac553 100644 --- a/youtube_dl/extractor/flickr.py +++ b/youtube_dl/extractor/flickr.py @@ -79,3 +79,5 @@ class FlickrIE(InfoExtractor): 'uploader': owner.get('realname'), 'comment_count': int_or_none(video_info.get('comments', {}).get('_content')), } + else: + raise ExtractorError('not a video', expected=True)