diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 9f54d5bc1..d4a7eceb4 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -113,6 +113,14 @@ {{ durationPretty }} +
+
+ {{ $strings.LabelDuration }} +
+
+ {{ (podcastDurationTotal / 3600).toFixed(1) }} (hrs) +
+
{{ $strings.LabelSize }} @@ -376,6 +384,13 @@ export default { podcastAuthor() { return this.mediaMetadata.author || '' }, + podcastDurationTotal() { + let totalDuration = 0; + this.media.episodes.forEach((ep) => { + totalDuration += ep.duration + }) + return totalDuration; + }, authors() { return this.mediaMetadata.authors || [] },