mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-16 00:39:40 +00:00
Bookshelf updates for music tracks
This commit is contained in:
parent
84d2d00a30
commit
7f5356100d
12 changed files with 139 additions and 49 deletions
|
|
@ -127,7 +127,7 @@ class Book {
|
|||
})
|
||||
}
|
||||
get duration() {
|
||||
var total = 0
|
||||
let total = 0
|
||||
this.tracks.forEach((track) => total += track.duration)
|
||||
return total
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ class Music {
|
|||
coverPath: this.coverPath,
|
||||
tags: [...this.tags],
|
||||
audioFile: this.audioFile.toJSON(),
|
||||
duration: this.duration,
|
||||
size: this.size
|
||||
}
|
||||
}
|
||||
|
|
@ -52,6 +53,7 @@ class Music {
|
|||
coverPath: this.coverPath,
|
||||
tags: [...this.tags],
|
||||
audioFile: this.audioFile.toJSON(),
|
||||
duration: this.duration,
|
||||
size: this.size
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue