aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/vube.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-17 05:39:58 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-17 08:40:30 +0530
commitb7da73eb19e00e4eab43ec7de129e9aa12f6d5d3 (patch)
treea87c490ae5d4de7e95c7b7a6cb9e5184d4827fd8 /yt_dlp/extractor/vube.py
parent6a39ee13f7613767905a4669d1d0247aafc5a12c (diff)
downloadhypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.lz
hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.xz
hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.zip
Add option `--ignore-no-formats-error`
* Ignores the "no video format" and similar errors * Experimental - Some extractors may still throw these errors
Diffstat (limited to 'yt_dlp/extractor/vube.py')
-rw-r--r--yt_dlp/extractor/vube.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/extractor/vube.py b/yt_dlp/extractor/vube.py
index 8ce3a6b81..c92b47e63 100644
--- a/yt_dlp/extractor/vube.py
+++ b/yt_dlp/extractor/vube.py
@@ -8,7 +8,6 @@ from ..compat import (
)
from ..utils import (
int_or_none,
- ExtractorError,
)
@@ -125,13 +124,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:')