fix my own broken code suggestion

This commit is contained in:
bashonly 2025-06-01 19:00:40 +00:00 committed by GitHub
parent 58d3793c10
commit b7fb448179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1676,7 +1676,7 @@ class InfoExtractor:
'title': unescapeHTML(e.get('name')),
'description': unescapeHTML(e.get('description')),
'thumbnails': traverse_obj(e, (('thumbnailUrl', 'thumbnailURL', 'thumbnail_url'), {
'url': ({unescapeHTML}, {self._proto_relative_url}, {url_or_none}),
'url': ({str}, {unescapeHTML}, {self._proto_relative_url}, {url_or_none}),
})),
'duration': parse_duration(e.get('duration')),
'timestamp': unified_timestamp(e.get('uploadDate')),