mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 12:11:52 +00:00
[vidme] Better error message for suspended vidme videos
This commit is contained in:
parent
dd8417526b
commit
59fe4824f8
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue