From 703a8da427f637328fe4716d66e7f5f4fa1dbf99 Mon Sep 17 00:00:00 2001 From: Imawall <67011163+Imaskiller@users.noreply.github.com> Date: Sat, 21 Aug 2021 08:49:14 +0000 Subject: [PATCH] fix comments failback to invidious api (#1537) Co-authored-by: Preston --- .../watch-video-comments.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.js b/src/renderer/components/watch-video-comments/watch-video-comments.js index b02b6278..04ccd2ea 100644 --- a/src/renderer/components/watch-video-comments/watch-video-comments.js +++ b/src/renderer/components/watch-video-comments/watch-video-comments.js @@ -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 }