[youtube] Bugfix (Closes #60)

This commit is contained in:
pukkandan 2021-02-08 19:20:19 +05:30
parent 06ff212d64
commit ff84930c86
1 changed files with 4 additions and 1 deletions

View File

@ -2792,7 +2792,10 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):
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 = []