Add remaining personalized shelf queries for podcasts

This commit is contained in:
advplyr 2023-08-05 15:28:16 -05:00
parent 09eefae808
commit 91b6c4412d
6 changed files with 219 additions and 73 deletions

View file

@ -170,9 +170,8 @@ export default {
this.loaded = true
},
async fetchCategories() {
const endpoint = this.currentLibraryMediaType === 'book' ? 'personalized2' : 'personalized'
const categories = await this.$axios
.$get(`/api/libraries/${this.currentLibraryId}/${endpoint}?include=rssfeed,numEpisodesIncomplete`)
.$get(`/api/libraries/${this.currentLibraryId}/personalized2?include=rssfeed,numEpisodesIncomplete`)
.then((data) => {
return data
})

View file

@ -133,12 +133,15 @@ export default {
this.rendition.spread(settings.spread || 'auto')
},
prev() {
if (!this.rendition?.manager) return
return this.rendition?.prev()
},
next() {
if (!this.rendition?.manager) return
return this.rendition?.next()
},
goToChapter(href) {
if (!this.rendition?.manager) return
return this.rendition?.display(href)
},
keyUp(e) {