Update get library series api endpoint to load from db

This commit is contained in:
advplyr 2023-08-18 17:08:34 -05:00
parent 9d7d4c6902
commit 4e4a976050
8 changed files with 276 additions and 13 deletions

View file

@ -317,6 +317,8 @@ export default {
// TODO: Temp use new library items API for everything except collapse sub-series
if (entityPath === 'items' && !this.collapseBookSeries && !(this.filterName === 'Series' && this.collapseSeries)) {
entityPath += '2'
} else if (entityPath === 'series') {
entityPath += '2'
}
const sfQueryString = this.currentSFQueryString ? this.currentSFQueryString + '&' : ''
@ -628,6 +630,11 @@ export default {
return entitiesPerShelfBefore < this.entitiesPerShelf // Books per shelf has changed
},
async init(bookshelf) {
if (this.entityName === 'series') {
this.booksPerFetch = 50
} else {
this.booksPerFetch = 100
}
this.checkUpdateSearchParams()
this.initSizeData(bookshelf)