mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-09 20:49:38 +00:00
Merge remote-tracking branch 'josh-vin/master' into feat/ChaptersEnhancments
This commit is contained in:
commit
2773c8c4a9
22 changed files with 338 additions and 59 deletions
|
|
@ -756,7 +756,7 @@ export default {
|
|||
if (data.error) {
|
||||
this.asinError = this.$getString(data.stringKey)
|
||||
} else {
|
||||
console.log('Chapter data', data)
|
||||
console.log('Chapter data', { ...data })
|
||||
this.chapterData = this.removeBranding ? this.removeBrandingFromData(data) : data
|
||||
}
|
||||
})
|
||||
|
|
@ -793,6 +793,11 @@ export default {
|
|||
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
|
||||
} catch {
|
||||
return data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue