aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/flickr.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-11-05 18:01:13 +0100
committerremitamine <remitamine@gmail.com>2015-11-05 18:01:13 +0100
commit967c9076a31ca2a2b43fb71082ad1a8db88116bd (patch)
tree8c1af60ab534af175166070f37171af39eb2508e /youtube_dl/extractor/flickr.py
parentf3003531a5622cc01501325b9f35dcb2424cfb70 (diff)
raise ExtractorError if the page doesn't contain a video
Diffstat (limited to 'youtube_dl/extractor/flickr.py')
-rw-r--r--youtube_dl/extractor/flickr.py2
1 files changed, 2 insertions, 0 deletions
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)