From e23da56b3764ca3e8d67ed88415aa5d65f84539e Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 25 Dec 2024 14:07:48 -0500 Subject: [PATCH] Innertube continuations (#522) * Search continuations * add another type of playlists * Continuation for search and channels working * Playlist continuation * Fix pagination - what a fucking mess I've created * web app fix * Changelog --- CHANGELOG.md | 1 + .../ContentNode/PlaylistContentNode.xml | 3 +- .../ContentNode/PlaylistContentTask.bs | 8 +- .../Services/Innertube/BrowseEndpoint.bs | 12 ++- .../Services/Innertube/InnertubeService.bs | 40 +++++++-- .../Services/Innertube/NodesParser.bs | 85 ++++++++++++++++++- .../components/Services/Innertube/Parser.bs | 40 +++++---- .../components/Services/Innertube/Search.bs | 16 ++-- .../Services/Invidious/InvidiousService.bs | 44 +++++++--- .../Invidious/InvidiousToContentNode.bs | 2 + .../VideoFeed/VideoRowListRowContentTask.bs | 9 +- .../PlayletInvidiousBackendRouter.bs | 58 ++++++++++--- playlet-web/src/lib/Api/InvidiousApi.ts | 40 ++++++--- .../src/lib/Screens/SearchScreen.svelte | 20 +++-- .../src/lib/VideoFeed/VideoListRow.svelte | 11 +-- 15 files changed, 293 insertions(+), 96 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1dc4e43..bb3ce83f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Support for auto-generated channels in Playlet backend +- Support for continuation/pagination in Playlet backend: search, channels and playlists load more content as you scroll ### Fixed diff --git a/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml b/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml index 3aade21b..4699bf3b 100644 --- a/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml +++ b/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml @@ -7,7 +7,8 @@ -