raise ExtractorError if the page doesn't contain a video
authorremitamine <remitamine@gmail.com>
Thu, 5 Nov 2015 17:01:13 +0000 (18:01 +0100)
committerremitamine <remitamine@gmail.com>
Thu, 5 Nov 2015 17:01:13 +0000 (18:01 +0100)
youtube_dl/extractor/flickr.py

index e97754d36e734da8cdb4be23fe7b225d8d4b86d1..92d2ac55393d708de36a3b624e7f36920aa6a67b 100644 (file)
@@ -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)