Skip to content

A feature-rich command-line audio/video downloader

[extractor] Do not exit early for unsuitable `url_result`

pukkandanbaa922b5c74b
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 2091df7faf..5da12725ae 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):