Change:Bookshelf to return minified audiobook objects and limit 100 #255

This commit is contained in:
advplyr 2021-12-24 16:37:57 -06:00
parent 18fa7a0b10
commit 3f8551f9a1
6 changed files with 31 additions and 26 deletions

View file

@ -211,7 +211,7 @@ class Audiobook {
ebooks: this.ebooks.map(ebook => ebook.toJSON()),
numEbooks: this.ebooks.length,
numTracks: this.tracks.length,
chapters: this.chapters || [],
numChapters: (this.chapters || []).length,
isMissing: !!this.isMissing,
isInvalid: !!this.isInvalid,
hasMissingParts: this.numMissingParts,