mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 15:16:52 +01:00
[youtube] Bugfix (Closes #60)
This commit is contained in:
parent
06ff212d64
commit
ff84930c86
@ -2792,7 +2792,10 @@ def _extract_from_tabs(self, item_id, webpage, data, tabs, identity_token):
|
|||||||
tags = renderer.get('keywords', '').split()
|
tags = renderer.get('keywords', '').split()
|
||||||
thumbnails_list = (
|
thumbnails_list = (
|
||||||
try_get(renderer, lambda x: x['avatar']['thumbnails'], list)
|
try_get(renderer, lambda x: x['avatar']['thumbnails'], list)
|
||||||
or data['sidebar']['playlistSidebarRenderer']['items'][0]['playlistSidebarPrimaryInfoRenderer']['thumbnailRenderer']['playlistVideoThumbnailRenderer']['thumbnail']['thumbnails']
|
or try_get(
|
||||||
|
data,
|
||||||
|
lambda x: x['sidebar']['playlistSidebarRenderer']['items'][0]['playlistSidebarPrimaryInfoRenderer']['thumbnailRenderer']['playlistVideoThumbnailRenderer']['thumbnail']['thumbnails'],
|
||||||
|
list)
|
||||||
or [])
|
or [])
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
|
Loading…
Reference in New Issue
Block a user