1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[vidme] Better error message for suspended vidme videos

This commit is contained in:
Lukáš Lalinský 2015-10-17 18:52:25 +02:00
parent dd8417526b
commit 59fe4824f8

View File

@ -114,6 +114,12 @@ def _real_extract(self, url):
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'],