aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M <dstftw@gmail.com>2014-09-25 20:48:54 +0700
committerSergey M <dstftw@gmail.com>2014-09-25 20:48:54 +0700
commitfbd3162e4918a2e1321ebdcec47ac84a8b121fbe (patch)
tree1a4de87dc496ccd67abfc2f9c124b4d072b78255
parent54e9a4af951f26edd7719f1a1b56e0a92d2791ec (diff)
[vube] Add DMCA notice
-rw-r--r--youtube_dl/extractor/vube.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/vube.py b/youtube_dl/extractor/vube.py
index 2544c24bd..bcca4897a 100644
--- a/youtube_dl/extractor/vube.py
+++ b/youtube_dl/extractor/vube.py
@@ -6,6 +6,7 @@ from .common import InfoExtractor
from ..utils import (
int_or_none,
compat_str,
+ ExtractorError,
)
@@ -102,6 +103,11 @@ class VubeIE(InfoExtractor):
self._sort_formats(formats)
+ if not formats and video.get('vst') == 'dmca':
+ raise ExtractorError(
+ 'This video has been removed in response to a complaint received under the US Digital Millennium Copyright Act.',
+ expected=True)
+
title = video['title']
description = video.get('description')
thumbnail = self._proto_relative_url(video.get('thumbnail_src'), scheme='http:')