mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Misnamed variable and cumulative length
This commit is contained in:
parent
34b340f179
commit
cadef9b023
@ -115,12 +115,12 @@ function generateParsedChapters(includedAudioFiles, cleanedOverdriveMediaMarkers
|
|||||||
cleanedOverdriveMediaMarkers[track_index].forEach((chapter) => {
|
cleanedOverdriveMediaMarkers[track_index].forEach((chapter) => {
|
||||||
let timeParts = chapter.Time.split(':')
|
let timeParts = chapter.Time.split(':')
|
||||||
// add seconds
|
// add seconds
|
||||||
time = parseFloat(timeParts.pop())
|
time = length + parseFloat(timeParts.pop())
|
||||||
if (parts.length) {
|
if (timeParts.length) {
|
||||||
// add minutes
|
// add minutes
|
||||||
time += parseFloat(timeParts.pop()) * 60
|
time += parseFloat(timeParts.pop()) * 60
|
||||||
}
|
}
|
||||||
if (parts.length) {
|
if (timeParts.length) {
|
||||||
// add hours
|
// add hours
|
||||||
time += parseFloat(timeParts.pop()) * 3600
|
time += parseFloat(timeParts.pop()) * 3600
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user