Skip to content

Commit

Permalink
Fix sorting for the Invidious API
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Feb 26, 2023
1 parent 649344d commit 45d164f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/renderer/views/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,18 @@ export default defineComponent({
}
}

if (sortByChanged) {
this.videoContinuationData = null
}

let more = false
if (this.videoContinuationData) {
payload.params.continuation = this.videoContinuationData
more = !sortByChanged
more = true
}

if (!more) {
this.isElementListLoading = true
}

invidiousAPICall(payload).then((response) => {
Expand Down Expand Up @@ -751,6 +759,7 @@ export default defineComponent({
},

getPlaylistsInvidious: function () {
this.isElementListLoading = true
const payload = {
resource: 'channels/playlists',
id: this.id,
Expand Down

0 comments on commit 45d164f

Please sign in to comment.