diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-18 15:24:21 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-18 15:24:21 -0500 |
commit | 5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e (patch) | |
tree | 65209bc739db35e31f1c9b5b868eb5df4fe12ae3 /hypervideo_dl/extractor/vube.py | |
parent | 27fe903c511691c078942bef5ee9a05a43b15c8f (diff) | |
download | hypervideo-5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e.tar.lz hypervideo-5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e.tar.xz hypervideo-5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e.zip |
update from upstream
Diffstat (limited to 'hypervideo_dl/extractor/vube.py')
-rw-r--r-- | hypervideo_dl/extractor/vube.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/hypervideo_dl/extractor/vube.py b/hypervideo_dl/extractor/vube.py index 8ce3a6b..1c8f80a 100644 --- a/hypervideo_dl/extractor/vube.py +++ b/hypervideo_dl/extractor/vube.py @@ -1,6 +1,5 @@ from __future__ import unicode_literals -import re from .common import InfoExtractor from ..compat import ( @@ -8,7 +7,6 @@ from ..compat import ( ) from ..utils import ( int_or_none, - ExtractorError, ) @@ -99,7 +97,7 @@ class VubeIE(InfoExtractor): ] def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) + mobj = self._match_valid_url(url) video_id = mobj.group('id') video = self._download_json( @@ -125,13 +123,13 @@ class VubeIE(InfoExtractor): }) formats.append(fmt) - self._sort_formats(formats) - if not formats and video.get('vst') == 'dmca': - raise ExtractorError( + self.raise_no_formats( 'This video has been removed in response to a complaint received under the US Digital Millennium Copyright Act.', expected=True) + self._sort_formats(formats) + title = video['title'] description = video.get('description') thumbnail = self._proto_relative_url(video.get('thumbnail_src'), scheme='http:') |