From ff84930c863759bfe326a2db643953d92ec7bd4b Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 8 Feb 2021 19:20:19 +0530 Subject: [PATCH] [youtube] Bugfix (Closes #60) --- youtube_dlc/extractor/youtube.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py index fb2668de07..6bf82c1008 100644 --- a/youtube_dlc/extractor/youtube.py +++ b/youtube_dlc/extractor/youtube.py @@ -2792,7 +2792,10 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor): tags = renderer.get('keywords', '').split() 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 []) thumbnails = []