mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 18:34:41 +01:00
Make title
completely non-fatal
Ref: https://github.com/yt-dlp/yt-dlp/pull/6158#discussion_r1096984349
This commit is contained in:
parent
fbbb5508ea
commit
7aefd19afe
@ -2411,11 +2411,7 @@ def check_thumbnails(thumbnails):
|
|||||||
def _fill_common_fields(self, info_dict, final=True):
|
def _fill_common_fields(self, info_dict, final=True):
|
||||||
# TODO: move sanitization here
|
# TODO: move sanitization here
|
||||||
if final:
|
if final:
|
||||||
title = info_dict.get('title', NO_DEFAULT)
|
title = info_dict['fulltitle'] = info_dict.get('title')
|
||||||
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
|
|
||||||
if not title:
|
if not title:
|
||||||
if title == '':
|
if title == '':
|
||||||
self.write_debug('Extractor gave empty title. Creating a generic title')
|
self.write_debug('Extractor gave empty title. Creating a generic title')
|
||||||
|
Loading…
Reference in New Issue
Block a user