mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
[extractor] Do not exit early for unsuitable url_result
This commit is contained in:
parent
9bfe0d15bd
commit
baa922b5c7
1 changed files with 2 additions and 2 deletions
|
@ -3513,7 +3513,7 @@ class InfoExtractor:
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_single_video(cls, url):
|
def is_single_video(cls, url):
|
||||||
"""Returns whether the URL is of a single video, None if unknown"""
|
"""Returns whether the URL is of a single video, None if unknown"""
|
||||||
assert cls.suitable(url), 'The URL must be suitable for the extractor'
|
if cls.suitable(url):
|
||||||
return {'video': True, 'playlist': False}.get(cls._RETURN_TYPE)
|
return {'video': True, 'playlist': False}.get(cls._RETURN_TYPE)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue