mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 02:34:56 +02:00
Add remaining personalized shelf queries for podcasts
This commit is contained in:
parent
09eefae808
commit
91b6c4412d
6 changed files with 219 additions and 73 deletions
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue