[skip ci] fix bug where playlists will not load the second page when not logged in
This commit is contained in:
1 parent
d70a07049a
commit
a10f3df298
6 files changed
+66
-7
No files matched your search
@@ -17,6 +17,8 @@ end function
|
||||
function LoadPlaylist(invidiousNode as object, singlePage as boolean) as void
|
||||
if m.contentTask <> invalid
|
||||
m.contentTask.cancel = true
|
||||
m.contentTask = invalid
|
||||
m.top.isLoading = false
|
||||
end if
|
||||
|
||||
loadState = m.top.loadState
|
||||
@@ -30,10 +32,12 @@ function LoadPlaylist(invidiousNode as object, singlePage as boolean) as void
|
||||
invidious: invidiousNode
|
||||
singlePage: singlePage
|
||||
}, OnPlaylistContentTaskResult)
|
||||
m.top.isLoading = true
|
||||
end function
|
||||
|
||||
function OnPlaylistContentTaskResult(output as object) as void
|
||||
m.contentTask = invalid
|
||||
m.top.isLoading = false
|
||||
|
||||
if output.cancelled
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user