From 1cdcd7327f51a42b6e2ca2d2b2ec6be088eda90d Mon Sep 17 00:00:00 2001 From: Marcos Carvalho Date: Tue, 11 Jun 2024 19:31:10 +0100 Subject: [PATCH 1/2] Add play downloaded episode and library size --- pages/downloads.vue | 3 ++ pages/localMedia/item/_id.vue | 97 +++++++++++++++++++++++++++-------- strings/en-us.json | 2 + 3 files changed, 81 insertions(+), 21 deletions(-) diff --git a/pages/downloads.vue b/pages/downloads.vue index 8c1d8cd5e..42bd1f9d7 100644 --- a/pages/downloads.vue +++ b/pages/downloads.vue @@ -23,6 +23,9 @@ +
+ {{ $strings.LabelTotalSize }}: {{ $bytesPretty(localLibraryItems.reduce((acc, item) => acc + item.size, 0)) }} +
diff --git a/pages/localMedia/item/_id.vue b/pages/localMedia/item/_id.vue index 214f2a6fd..f3796fe4f 100644 --- a/pages/localMedia/item/_id.vue +++ b/pages/localMedia/item/_id.vue @@ -17,7 +17,10 @@
-

Audio Tracks ({{ audioTracks.length }})

+
+

Audio Tracks ({{ audioTracks.length }})

+

{{ $strings.LabelTotalSize }}: {{ $bytesPretty(totalAudioSize) }}

+
@@ -46,7 +49,10 @@
-

Episodes ({{ episodes.length }})

+
+

Episodes ({{ episodes.length }})

+

{{ $strings.LabelTotalSize }}: {{ $bytesPretty(totalEpisodesSize) }}

+