Browse Source

Merge pull request #7211 from lalinsky/vidme-suspended

[vidme] Better error message for suspended vidme videos
totalwebcasting
Sergey M. 9 years ago
parent
commit
ddeb1b3de2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      youtube_dl/extractor/vidme.py

+ 6
- 0
youtube_dl/extractor/vidme.py View File

@ -114,6 +114,12 @@ class VidmeIE(InfoExtractor):
video = response['video']
if video.get('state') == 'user-disabled':
raise ExtractorError(
'Vidme said: This video has been suspended either due to a copyright claim, '
'or for violating the terms of use.',
expected=True)
formats = [{
'format_id': f.get('type'),
'url': f['uri'],


Loading…
Cancel
Save