Merge pull request #7211 from lalinsky/vidme-suspended

[vidme] Better error message for suspended vidme videos
pull/8/head
Sergey M. 2015-10-17 22:56:51 +06:00
commit ddeb1b3de2
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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'],