[extractor] Do not exit early for unsuitable url_result

This commit is contained in:
pukkandan 2023-03-24 21:53:45 +05:30
parent 9bfe0d15bd
commit baa922b5c7
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -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):