Remove logic for getting the next page in the Invidious API as it isn't needed anymore

This commit is contained in:
PrestonN 2021-11-11 16:29:37 -05:00
parent 7ea86ef74d
commit 2d7cd466bc
2 changed files with 4 additions and 22 deletions

View File

@ -332,10 +332,7 @@ export default Vue.extend({
const payload = {
resource: 'playlists',
id: this.playlistId,
params: {
page: this.playlistPage
}
id: this.playlistId
}
this.invidiousGetPlaylistInfo(payload).then((result) => {
@ -349,13 +346,7 @@ export default Vue.extend({
this.channelId = result.authorId
this.playlistItems = this.playlistItems.concat(result.videos)
if (this.playlistItems.length < result.videoCount) {
console.log('getting next page')
this.playlistPage++
this.getPlaylistInformationInvidious()
} else {
this.isLoading = false
}
this.isLoading = false
}).catch((err) => {
console.log(err)
const errorMessage = this.$t('Invidious API Error (Click to copy)')

View File

@ -113,10 +113,7 @@ export default Vue.extend({
const payload = {
resource: 'playlists',
id: this.playlistId,
params: {
page: this.playlistPage
}
id: this.playlistId
}
this.invidiousGetPlaylistInfo(payload).then((result) => {
@ -142,13 +139,7 @@ export default Vue.extend({
this.playlistItems = this.playlistItems.concat(result.videos)
if (this.playlistItems.length < result.videoCount) {
console.log('getting next page')
this.playlistPage++
this.getPlaylistInvidious()
} else {
this.isLoading = false
}
this.isLoading = false
}).catch((err) => {
console.log(err)
if (this.backendPreference === 'invidious' && this.backendFallback) {