diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 9f54d5bc..ef99cefb 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -105,7 +105,7 @@ -
+
{{ $strings.LabelDuration }}
@@ -415,6 +415,8 @@ export default { }) }, durationPretty() { + if (this.isPodcast) return this.$elapsedPrettyExtended(this.totalPodcastDuration) + if (!this.tracks.length && !this.audioFile) return 'N/A' if (this.audioFile) return this.$elapsedPrettyExtended(this.duration) return this.$elapsedPretty(this.duration) @@ -423,6 +425,12 @@ export default { if (!this.tracks.length && !this.audioFile) return 0 return this.media.duration }, + totalPodcastDuration() { + if (!this.podcastEpisodes.length) return 0 + let totalDuration = 0 + this.podcastEpisodes.forEach((ep) => (totalDuration += ep.duration || 0)) + return totalDuration + }, sizePretty() { return this.$bytesPretty(this.media.size) },