Compare commits

...

3 Commits

Author SHA1 Message Date
bashonly
13d44faab6
serves me right for not testing my own suggestion 2025-06-01 19:15:08 +00:00
bashonly
b7fb448179
fix my own broken code suggestion 2025-06-01 19:00:40 +00:00
doe1080
58d3793c10 update common.py 2025-06-02 03:19:19 +09:00

View File

@ -1675,9 +1675,9 @@ class InfoExtractor:
'ext': mimetype2ext(e.get('encodingFormat')),
'title': unescapeHTML(e.get('name')),
'description': unescapeHTML(e.get('description')),
'thumbnails': [{'url': unescapeHTML(url)}
for url in variadic(traverse_obj(e, 'thumbnailUrl', 'thumbnailURL'))
if url_or_none(url)],
'thumbnails': traverse_obj(e, (('thumbnailUrl', 'thumbnailURL', 'thumbnail_url'), (None, ...), {
'url': ({str}, {unescapeHTML}, {self._proto_relative_url}, {url_or_none}),
})),
'duration': parse_duration(e.get('duration')),
'timestamp': unified_timestamp(e.get('uploadDate')),
# author can be an instance of 'Organization' or 'Person' types.