Mixes in in Playlet backend (#530)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-12-28 15:22:07 -05:00
1 parent 5b6b5f5ec3
commit 0d21963d5f
12 files changed
+149 -36

No files matched your search

@@ -17,11 +17,19 @@ function PlaylistContentTask(input as object) as object
instance = service.GetInstance()
while true
playlistId = contentNode.playlistId
index = contentNode.getChildCount()
continuation = contentNode.continuation
hadContinuation = not StringUtils.IsNullOrEmpty(continuation)
response = service.GetPlaylist(contentNode.playlistId, index, continuation, m.top.cancellation)
if playlistId.StartsWith("RD") and not hadContinuation
videoId = contentNode.videoId
if not StringUtils.IsNullOrEmpty(videoId)
continuation = videoId
end if
end if
response = service.GetPlaylist(playlistId, index, continuation, m.top.cancellation)
if m.top.cancel
contentNode.loadState = FeedLoadState.None