From 950993f652869a7a3b68765d7f6537e151f5ab11 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 25 Nov 2024 17:26:06 -0600 Subject: [PATCH] Update:View episode modal includes audio filename and size #3648 --- .../components/modals/podcast/ViewEpisode.vue | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/client/components/modals/podcast/ViewEpisode.vue b/client/components/modals/podcast/ViewEpisode.vue index 411e9efd98..af67242ae9 100644 --- a/client/components/modals/podcast/ViewEpisode.vue +++ b/client/components/modals/podcast/ViewEpisode.vue @@ -18,6 +18,23 @@

{{ title }}

{{ $strings.MessageNoDescription }}

+ +
+ +
+
+

{{ $strings.LabelFilename }}

+

+ {{ audioFileFilename }} +

+
+
+

{{ $strings.LabelSize }}

+

+ {{ audioFileSize }} +

+
+
@@ -54,7 +71,7 @@ export default { return this.episode.description || '' }, media() { - return this.libraryItem ? this.libraryItem.media || {} : {} + return this.libraryItem?.media || {} }, mediaMetadata() { return this.media.metadata || {} @@ -65,6 +82,14 @@ export default { podcastAuthor() { return this.mediaMetadata.author }, + audioFileFilename() { + return this.episode.audioFile?.metadata?.filename || '' + }, + audioFileSize() { + const size = this.episode.audioFile?.metadata?.size || 0 + + return this.$bytesPretty(size) + }, bookCoverAspectRatio() { return this.$store.getters['libraries/getBookCoverAspectRatio'] }