Skip to content

Commit

Permalink
[extractor] Do not exit early for unsuitable url_result
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Mar 25, 2023
1 parent 9bfe0d1 commit baa922b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/extractor/common.py
Expand Up @@ -3513,8 +3513,8 @@ def _RETURN_TYPE(cls):
@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):
Expand Down

0 comments on commit baa922b

Please sign in to comment.