Browse Source

raise ExtractorError if the page doesn't contain a video

totalwebcasting
remitamine 9 years ago
parent
commit
967c9076a3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/flickr.py

+ 2
- 0
youtube_dl/extractor/flickr.py View 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)

Loading…
Cancel
Save