1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 00:52:52 +08:00

[vube] Add DMCA notice

This commit is contained in:
Sergey M 2014-09-25 20:48:54 +07:00
parent 54e9a4af95
commit fbd3162e49

View File

@ -6,6 +6,7 @@ from .common import InfoExtractor
from ..utils import ( from ..utils import (
int_or_none, int_or_none,
compat_str, compat_str,
ExtractorError,
) )
@ -102,6 +103,11 @@ class VubeIE(InfoExtractor):
self._sort_formats(formats) 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'] title = video['title']
description = video.get('description') description = video.get('description')
thumbnail = self._proto_relative_url(video.get('thumbnail_src'), scheme='http:') thumbnail = self._proto_relative_url(video.get('thumbnail_src'), scheme='http:')