Add recent series and authors bookshelf rows on home

This commit is contained in:
advplyr 2022-03-27 16:16:08 -05:00
parent 58dfa65660
commit c0ff28ffff
5 changed files with 95 additions and 35 deletions

View file

@ -125,6 +125,11 @@ class BookMetadata {
hasNarrator(narratorName) {
return this.narrators.includes(narratorName)
}
getSeriesSequence(seriesId) {
var series = this.series.find(se => se.id == seriesId)
if (!series) return null
return series.sequence || ''
}
update(payload) {
var json = this.toJSON()