mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-30 04:04:06 +01:00
Bookshelf updates for music tracks
This commit is contained in:
1 parent
84d2d00a30
commit
7f5356100d
12 files changed
+139
-49
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user