From 965a404be384f2f08f65fd7203a3843981ccad9b Mon Sep 17 00:00:00 2001 From: insaneracist Date: Tue, 10 Nov 2020 06:39:03 -0800 Subject: [PATCH] [youtube] poking github --- youtube_dlc/extractor/youtube.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py index 188892585..0266e01f4 100644 --- a/youtube_dlc/extractor/youtube.py +++ b/youtube_dlc/extractor/youtube.py @@ -2904,6 +2904,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor): page, 'client version', fatal=False) while playlist_items: item = playlist_items.pop(0) + item_video = try_get(item, lambda x: x['playlistVideoRenderer'], dict) if item_video: video_id = try_get(item_video, lambda x: x['videoId'], compat_str) @@ -2917,6 +2918,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor): 'url': video_id } entries.append(entry) + item_continue = try_get(item, lambda x: x['continuationItemRenderer'], dict) if item_continue: playlist_page += 1 @@ -2940,6 +2942,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor): playlist_items_new = try_get(response, lambda x: x['onResponseReceivedActions'][0]['appendContinuationItemsAction']['continuationItems'], list) if playlist_items_new: playlist_items.extend(playlist_items_new) + playlist_title = try_get(yt_initial, lambda x: x['microformat']['microformatDataRenderer']['title'], compat_str) playlist_description = try_get(yt_initial, lambda x: x['microformat']['microformatDataRenderer']['description'], compat_str) playlist = self.playlist_result(