diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-02-07 01:17:11 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-02-07 01:18:04 +0530 |
commit | 7aefd19afed357c80743405ec2ace2148cba42e3 (patch) | |
tree | 8bd46bf759049dfd1e0113cf5daf52e09d668f96 | |
parent | fbbb5508ea98ed8709847f5ecced7d70ff05e0ee (diff) | |
download | hypervideo-pre-7aefd19afed357c80743405ec2ace2148cba42e3.tar.lz hypervideo-pre-7aefd19afed357c80743405ec2ace2148cba42e3.tar.xz hypervideo-pre-7aefd19afed357c80743405ec2ace2148cba42e3.zip |
Make `title` completely non-fatal
Ref: https://github.com/yt-dlp/yt-dlp/pull/6158#discussion_r1096984349
-rw-r--r-- | yt_dlp/YoutubeDL.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index fd280726f..e092aed67 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2411,11 +2411,7 @@ class YoutubeDL: def _fill_common_fields(self, info_dict, final=True): # TODO: move sanitization here if final: - title = info_dict.get('title', NO_DEFAULT) - if title is NO_DEFAULT: - raise ExtractorError('Missing "title" field in extractor result', - video_id=info_dict['id'], ie=info_dict['extractor']) - info_dict['fulltitle'] = title + title = info_dict['fulltitle'] = info_dict.get('title') if not title: if title == '': self.write_debug('Extractor gave empty title. Creating a generic title') |