1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

[ie/niconico:live] Fix thumbnail extraction

Authored by: bashonly
This commit is contained in:
bashonly 2025-02-19 17:28:25 -06:00
parent 9c3e8b1696
commit 4ec90de3d2
No known key found for this signature in database
GPG key ID: 783F096F253D15B0

View file

@ -13,11 +13,13 @@
ExtractorError,
OnDemandPagedList,
clean_html,
determine_ext,
float_or_none,
int_or_none,
join_nonempty,
parse_duration,
parse_iso8601,
parse_qs,
parse_resolution,
qualities,
remove_start,
@ -1033,6 +1035,7 @@ def _real_extract(self, url):
thumbnails.append({
'id': f'{name}_{width}x{height}',
'url': img_url,
'ext': traverse_obj(parse_qs(img_url), ('image', 0, {determine_ext(default_ext='jpg')})),
**res,
})