From 967c9076a31ca2a2b43fb71082ad1a8db88116bd Mon Sep 17 00:00:00 2001 From: remitamine Date: Thu, 5 Nov 2015 18:01:13 +0100 Subject: [PATCH] raise ExtractorError if the page doesn't contain a video --- youtube_dl/extractor/flickr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/flickr.py b/youtube_dl/extractor/flickr.py index e97754d36e..92d2ac5539 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)