diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-03-24 21:53:45 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-03-25 13:18:21 +0530 |
commit | baa922b5c74b10e3b86ff5e6cf6529b3aae8efab (patch) | |
tree | cc1b1abd63c273da9381c3adaeafff072f68559a /yt_dlp/extractor/common.py | |
parent | 9bfe0d15bd7dbdc6b0e6378fa9f5e2e289b2373b (diff) | |
download | hypervideo-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.py | 4 |
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): |