aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-03-24 21:53:45 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-03-25 13:18:21 +0530
commitbaa922b5c74b10e3b86ff5e6cf6529b3aae8efab (patch)
treecc1b1abd63c273da9381c3adaeafff072f68559a /yt_dlp/extractor/common.py
parent9bfe0d15bd7dbdc6b0e6378fa9f5e2e289b2373b (diff)
downloadhypervideo-pre-baa922b5c74b10e3b86ff5e6cf6529b3aae8efab.tar.lz
hypervideo-pre-baa922b5c74b10e3b86ff5e6cf6529b3aae8efab.tar.xz
hypervideo-pre-baa922b5c74b10e3b86ff5e6cf6529b3aae8efab.zip
[extractor] Do not exit early for unsuitable `url_result`
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 2091df7fa..5da12725a 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -3513,8 +3513,8 @@ class InfoExtractor:
@classmethod
def is_single_video(cls, url):
"""Returns whether the URL is of a single video, None if unknown"""
- assert cls.suitable(url), 'The URL must be suitable for the extractor'
- return {'video': True, 'playlist': False}.get(cls._RETURN_TYPE)
+ if cls.suitable(url):
+ return {'video': True, 'playlist': False}.get(cls._RETURN_TYPE)
@classmethod
def is_suitable(cls, age_limit):