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
This commit is contained in:
1 parent
f6e23ad7d9
commit
e23da56b37
15 files changed
+293
-96
No files matched your search
@@ -18,7 +18,10 @@ function PlaylistContentTask(input as object) as object
|
||||
|
||||
while true
|
||||
index = contentNode.getChildCount()
|
||||
response = service.GetPlaylist(contentNode.playlistId, index, m.top.cancellation)
|
||||
continuation = contentNode.continuation
|
||||
hadContinuation = not StringUtils.IsNullOrEmpty(continuation)
|
||||
|
||||
response = service.GetPlaylist(contentNode.playlistId, index, continuation, m.top.cancellation)
|
||||
|
||||
if m.top.cancel
|
||||
contentNode.loadState = FeedLoadState.None
|
||||
@@ -59,7 +62,8 @@ function PlaylistContentTask(input as object) as object
|
||||
|
||||
videoCount = ValidInt(metadata.videoCount)
|
||||
|
||||
if metadata.videos.Count() = 0 or childCount >= videoCount
|
||||
hasContinuation = not StringUtils.IsNullOrEmpty(metadata.continuation)
|
||||
if (hadContinuation and not hasContinuation) or (metadata.videos.Count() = 0 or childCount >= videoCount)
|
||||
contentNode.loadState = FeedLoadState.Loaded
|
||||
return {
|
||||
success: true
|
||||
|
||||
Reference in new issue
Block a user