mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-20 18:59:37 +00:00
Cleaning up, adding readme and images, genre filter
This commit is contained in:
parent
53e46ff54d
commit
307b5b83a9
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