From bc5cc0ba93cccbd5faeb527d394aa8b8e9e4b304 Mon Sep 17 00:00:00 2001 From: girst Date: Wed, 5 Jan 2022 22:58:53 +0100 Subject: [PATCH] implement displaying 'youtube mixes' in /channel/.../playlists --- app/common/innertube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/innertube.py b/app/common/innertube.py index 1829d01..29d4d74 100644 --- a/app/common/innertube.py +++ b/app/common/innertube.py @@ -354,12 +354,12 @@ def parse_channel_items(items, channel_id, author): 'views': content|G('viewCountText')|G.text|A.int, 'published': content|G('publishedTimeText')|G.text|A(age), }}) - elif key == "gridPlaylistRenderer" or key == "playlistRenderer": + elif key in ["gridPlaylistRenderer", "playlistRenderer", "gridRadioRenderer"]: result.append({'type': 'PLAYLIST', 'content': { 'playlist_id': content|G('navigationEndpoint')|G('watchEndpoint')|G('playlistId'), 'video_id': content|G('navigationEndpoint')|G('watchEndpoint')|G('videoId'), 'title': content|G('title')|G.text, - 'author': author, + 'author': author, # Note: gridRadioRenderer is by 'Youtube' without channel_id, ignoring that. 'channel_id': channel_id, 'n_videos': (content|G('videoCount')|A.int or # playlistRenderer content|G('videoCountShortText','videoCountText')|G.text|A.int) # grid -- 2.39.3