Fix error when playing video with playlist with Indivious API and... (#3294)

* ! Fix error when playing video with playlist with Indivious API

* ! Fix switching comment sort does not get first page of comments
This commit is contained in:
PikachuEXE 2023-03-15 02:18:48 +08:00 committed by GitHub
parent c37cb95d1b
commit a878ff395a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,8 @@ export default defineComponent({
handleSortChange: function () {
this.sortNewest = !this.sortNewest
this.commentData = []
// nextPageToken is reset to ensure first page is get
this.nextPageToken = null
this.getCommentData()
},

View File

@ -317,7 +317,7 @@ export default defineComponent({
getPlaylistInformationInvidious: function () {
this.isLoading = true
invidiousGetPlaylistInfo({ playlistId: this.playlistId }).then((result) => {
invidiousGetPlaylistInfo(this.playlistId).then((result) => {
this.playlistTitle = result.title
this.channelName = result.author
this.channelId = result.authorId