aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vidme.py
diff options
context:
space:
mode:
authorLukáš Lalinský <lukas@oxygene.sk>2015-10-17 18:52:25 +0200
committerLukáš Lalinský <lukas@oxygene.sk>2015-10-17 18:52:25 +0200
commit59fe4824f80b7e266ea9918ae1b2e49a456b869f (patch)
treeb8b72f0f2fc0549f2eee2105236817cfee9c0ed7 /youtube_dl/extractor/vidme.py
parentdd8417526b13c541e6db8f4200e717b8922a1620 (diff)
[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'],