From e54571f011880b8cd8e9693eb952f9dc8e40fe40 Mon Sep 17 00:00:00 2001 From: Chris Campanile Date: Thu, 31 Jul 2025 16:48:05 -0700 Subject: [PATCH 1/2] Including total durations into the de-branding from #4226 as warning message is always present currently --- client/pages/audiobook/_id/chapters.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index a8840744..4f261f16 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -609,6 +609,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 From 894ea0b80a8453999ab1290f03c5f47e05e1c362 Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 31 Jul 2025 19:19:11 -0500 Subject: [PATCH 2/2] Update chapter data log --- client/pages/audiobook/_id/chapters.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index 4f261f16..708a7e0a 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -572,7 +572,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 } })