Remove logic for getting the next page in the Invidious API as it isn't needed anymore
This commit is contained in:
parent
7ea86ef74d
commit
2d7cd466bc
|
@ -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
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.log(err)
|
||||
const errorMessage = this.$t('Invidious API Error (Click to copy)')
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.log(err)
|
||||
if (this.backendPreference === 'invidious' && this.backendFallback) {
|
||||
|
|
Loading…
Reference in New Issue