From: Lukáš Lalinský Date: Sat, 17 Oct 2015 16:52:25 +0000 (+0200) Subject: [vidme] Better error message for suspended vidme videos X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=59fe4824f80b7e266ea9918ae1b2e49a456b869f;p=youtube-dl [vidme] Better error message for suspended vidme videos --- diff --git a/youtube_dl/extractor/vidme.py b/youtube_dl/extractor/vidme.py index 078d283b2..81dcaa231 100644 --- a/youtube_dl/extractor/vidme.py +++ b/youtube_dl/extractor/vidme.py @@ -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'],