Browse Source

raise ExtractorError if the page doesn't contain a video

remitamine 9 năm trước cách đây
mục cha
commit
967c9076a3
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      youtube_dl/extractor/flickr.py

+ 2 - 0
youtube_dl/extractor/flickr.py

@@ -79,3 +79,5 @@ class FlickrIE(InfoExtractor):
                 'uploader': owner.get('realname'),
                 'uploader': owner.get('realname'),
                 'comment_count': int_or_none(video_info.get('comments', {}).get('_content')),
                 'comment_count': int_or_none(video_info.get('comments', {}).get('_content')),
             }
             }
+        else:
+            raise ExtractorError('not a video', expected=True)