mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-07 09:01:31 -04:00
Merge pull request #4551 from chriscam85/master
Including total durations into the de-branding from #4226 as warning message is always present currently
This commit is contained in:
commit
578e9559e4
@ -572,7 +572,7 @@ export default {
|
|||||||
if (data.error) {
|
if (data.error) {
|
||||||
this.asinError = this.$getString(data.stringKey)
|
this.asinError = this.$getString(data.stringKey)
|
||||||
} else {
|
} else {
|
||||||
console.log('Chapter data', data)
|
console.log('Chapter data', { ...data })
|
||||||
this.chapterData = this.removeBranding ? this.removeBrandingFromData(data) : data
|
this.chapterData = this.removeBranding ? this.removeBrandingFromData(data) : data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -609,6 +609,11 @@ export default {
|
|||||||
data.chapters.pop()
|
data.chapters.pop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove Branding durations from Runtime totals
|
||||||
|
data.runtimeLengthMs -= introDuration + outroDuration
|
||||||
|
data.runtimeLengthSec = Math.floor(data.runtimeLengthMs / 1000)
|
||||||
|
console.log('Brandless Chapter data', data)
|
||||||
|
|
||||||
return data
|
return data
|
||||||
} catch {
|
} catch {
|
||||||
return data
|
return data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user