fix comments failback to invidious api (#1537)

Co-authored-by: Preston <freetubeapp@protonmail.com>
This commit is contained in:
Imawall 2021-08-21 08:49:14 +00:00 committed by GitHub
parent 2f9ef7cdd6
commit 703a8da427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -191,7 +191,14 @@ export default Vue.extend({
this.showToast({
message: this.$t('Falling back to Invidious API')
})
this.getCommentDataInvidious()
this.getCommentDataInvidious({
resource: 'comments',
id: this.id,
params: {
continuation: this.nextPageToken,
sort_by: this.sortNewest ? 'new' : 'top'
}
})
} else {
this.isLoading = false
}
@ -219,7 +226,14 @@ export default Vue.extend({
this.showToast({
message: this.$t('Falling back to Invidious API')
})
this.getCommentDataInvidious()
this.getCommentDataInvidious({
resource: 'comments',
id: this.id,
params: {
continuation: this.nextPageToken,
sort_by: this.sortNewest ? 'new' : 'top'
}
})
} else {
this.isLoading = false
}