소스 검색

raise ExtractorError if the page doesn't contain a video

remitamine 10 년 전
부모
커밋
967c9076a3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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'),
                 'comment_count': int_or_none(video_info.get('comments', {}).get('_content')),
             }
+        else:
+            raise ExtractorError('not a video', expected=True)