diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-10 17:08:14 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-11 01:13:31 +0530 |
commit | cb794ee010c88c6dddb3a38608114f6bc0e4a3a0 (patch) | |
tree | 6b64ac7b5931aaa9967398324624c32a0b74d0ca | |
parent | 6d645b5577031d0611acab94a5ca3c88db9042f8 (diff) | |
download | hypervideo-pre-cb794ee010c88c6dddb3a38608114f6bc0e4a3a0.tar.lz hypervideo-pre-cb794ee010c88c6dddb3a38608114f6bc0e4a3a0.tar.xz hypervideo-pre-cb794ee010c88c6dddb3a38608114f6bc0e4a3a0.zip |
Do not allow extractors to return `None`
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 9408d5e59..85219ac95 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -86,6 +86,7 @@ from .utils import ( YoutubeDLRedirectHandler, age_restricted, args_to_str, + bug_reports_message, date_from_str, determine_ext, determine_protocol, @@ -1494,6 +1495,7 @@ class YoutubeDL: def __extract_info(self, url, ie, download, extra_info, process): ie_result = ie.extract(url) if ie_result is None: # Finished already (backwards compatibility; listformats and friends should be moved here) + self.report_warning(f'Extractor {ie.IE_NAME} returned nothing{bug_reports_message()}') return if isinstance(ie_result, list): # Backwards compatibility: old IE result format |