[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
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
<field id="type" type="string" value="playlist" />
|
||||
<field id="loadState" type="string" />
|
||||
<!-- isLoading indicates if there's a background task running to fetch data -->
|
||||
<field id="isLoading" type="boolean" />
|
||||
<!-- index in a feed -->
|
||||
<field id="feedSourcesIndex" type="integer" value="-1" />
|
||||
<field id="continuation" type="string" />
|
||||
|
||||
Reference in new issue
Block a user