mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2025-01-27 21:09:19 +01:00
Merge pull request #7211 from lalinsky/vidme-suspended
[vidme] Better error message for suspended vidme videos
This commit is contained in:
commit
ddeb1b3de2
@ -114,6 +114,12 @@ class VidmeIE(InfoExtractor):
|
|||||||
|
|
||||||
video = response['video']
|
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 = [{
|
formats = [{
|
||||||
'format_id': f.get('type'),
|
'format_id': f.get('type'),
|
||||||
'url': f['uri'],
|
'url': f['uri'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user