aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vidme.py
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2015-10-17 22:56:51 +0600
committerSergey M. <dstftw@gmail.com>2015-10-17 22:56:51 +0600
commitddeb1b3de288334f6d8052a759e602777cb15b00 (patch)
treeb8b72f0f2fc0549f2eee2105236817cfee9c0ed7 /youtube_dl/extractor/vidme.py
parentdd8417526b13c541e6db8f4200e717b8922a1620 (diff)
parent59fe4824f80b7e266ea9918ae1b2e49a456b869f (diff)
Merge pull request #7211 from lalinsky/vidme-suspended
[vidme] Better error message for suspended vidme videos
Diffstat (limited to 'youtube_dl/extractor/vidme.py')
-rw-r--r--youtube_dl/extractor/vidme.py6
1 files changed, 6 insertions, 0 deletions
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'],