mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-04-19 21:49:43 +00:00
Cleaning up, adding readme and images, genre filter
This commit is contained in:
parent
2c5b5dbeae
commit
d59aefd8c7
25 changed files with 269 additions and 65 deletions
|
|
@ -57,6 +57,10 @@ class Audiobook {
|
|||
return this.book ? this.book.author : 'Unknown'
|
||||
}
|
||||
|
||||
get genres() {
|
||||
return this.book ? this.book.genres || [] : []
|
||||
}
|
||||
|
||||
get totalDuration() {
|
||||
var total = 0
|
||||
this.tracks.forEach((track) => total += track.duration)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue