mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 05:47:24 +01:00
[ie/tvplay]: fix thumbnail urls
This commit is contained in:
parent
7bad952c71
commit
225ada61fd
@ -292,7 +292,7 @@ def _real_extract(self, url):
|
||||
stream['sources']['HLS'][0]['src'], video_id, 'mp4', 'm3u8_native', m3u8_id='hls')
|
||||
|
||||
thumbnails = set(traverse_obj(
|
||||
data, (('galary', 'images', 'artworks'), ..., ..., ('miniUrl', 'mainUrl')), expected_type=url_or_none))
|
||||
data, (('images', 'artworks'), ..., ..., ('miniUrl', 'mainUrl')), expected_type=url_or_none))
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
@ -304,7 +304,7 @@ def _real_extract(self, url):
|
||||
'episode': data.get('title'),
|
||||
'episode_number': int_or_none(data.get('episode')),
|
||||
'release_year': int_or_none(traverse_obj(data, ('season', 'serial', 'year'))),
|
||||
'thumbnails': [{'url': url, 'ext': 'jpg'} for url in thumbnails],
|
||||
'thumbnails': [{'url': f'https:{url}', 'ext': 'jpg'} for url in thumbnails],
|
||||
'formats': formats,
|
||||
'subtitles': subtitles,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user