From e54571f011880b8cd8e9693eb952f9dc8e40fe40 Mon Sep 17 00:00:00 2001 From: Chris Campanile Date: Thu, 31 Jul 2025 16:48:05 -0700 Subject: [PATCH 1/3] 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 a88407440..4f261f160 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/3] 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 4f261f160..708a7e0a1 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 } }) From 4d70929d2ed63ab4c6a261991f0a1df5864442b1 Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 31 Jul 2025 19:51:05 -0500 Subject: [PATCH 3/3] Add locale strings for user stats heatmap #4550 --- client/components/stats/Heatmap.vue | 2 +- client/strings/en-us.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/stats/Heatmap.vue b/client/components/stats/Heatmap.vue index b070934ba..44d1baa82 100644 --- a/client/components/stats/Heatmap.vue +++ b/client/components/stats/Heatmap.vue @@ -152,7 +152,7 @@ export default { this.showingTooltipIndex = index this.tooltipEl.style.display = 'block' - this.tooltipTextEl.innerHTML = block.value ? `${this.$elapsedPretty(block.value, true)} listening on ${block.datePretty}` : `No listening sessions on ${block.datePretty}` + this.tooltipTextEl.innerHTML = block.value ? this.$getString('MessageHeatmapListeningTimeTooltip', [this.$elapsedPrettyLocalized(block.value, true), block.datePretty]) : this.$getString('MessageHeatmapNoListeningSessions', [block.datePretty]) const calculateRect = this.tooltipEl.getBoundingClientRect() diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 6dba7adb0..f31a8a1df 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -805,6 +805,8 @@ "MessageFeedURLWillBe": "Feed URL will be {0}", "MessageFetching": "Fetching...", "MessageForceReScanDescription": "will scan all files again like a fresh scan. Audio file ID3 tags, OPF files, and text files will be scanned as new.", + "MessageHeatmapListeningTimeTooltip": "{0} listening on {1}", + "MessageHeatmapNoListeningSessions": "No listening sessions on {0}", "MessageImportantNotice": "Important Notice!", "MessageInsertChapterBelow": "Insert chapter below", "MessageInvalidAsin": "Invalid ASIN",