mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-14 03:15:03 +02:00
Fix:Size and duration sort
This commit is contained in:
parent
95ab2ab4b5
commit
9423727f89
4 changed files with 17 additions and 11 deletions
|
@ -166,7 +166,7 @@ module.exports = {
|
|||
getAudiobooksTotalDuration(audiobooks) {
|
||||
var totalDuration = 0
|
||||
audiobooks.forEach((ab) => {
|
||||
totalDuration += ab.totalDuration
|
||||
totalDuration += ab.duration
|
||||
})
|
||||
return totalDuration
|
||||
},
|
||||
|
@ -174,7 +174,7 @@ module.exports = {
|
|||
getAudiobooksTotalSize(audiobooks) {
|
||||
var totalSize = 0
|
||||
audiobooks.forEach((ab) => {
|
||||
totalSize += ab.totalSize
|
||||
totalSize += ab.size
|
||||
})
|
||||
return totalSize
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue