diff --git a/client/components/tables/podcast/LazyEpisodeRow.vue b/client/components/tables/podcast/LazyEpisodeRow.vue index d2b106fe..fecf7758 100644 --- a/client/components/tables/podcast/LazyEpisodeRow.vue +++ b/client/components/tables/podcast/LazyEpisodeRow.vue @@ -135,7 +135,9 @@ export default { if (this.streamIsPlaying) return 'Playing' if (!this.itemProgress) return this.$elapsedPretty(this.episode?.duration || 0) if (this.userIsFinished) return 'Finished' - const remaining = Math.floor(this.itemProgress.duration - this.itemProgress.currentTime) + + const duration = this.itemProgress.duration || this.episode?.duration || 0 + const remaining = Math.floor(duration - this.itemProgress.currentTime) return `${this.$elapsedPretty(remaining)} left` } }, diff --git a/client/pages/library/_library/podcast/latest.vue b/client/pages/library/_library/podcast/latest.vue index d0565816..e69e055f 100644 --- a/client/pages/library/_library/podcast/latest.vue +++ b/client/pages/library/_library/podcast/latest.vue @@ -155,7 +155,9 @@ export default { if (this.episodeIdStreaming === episode.id) return this.streamIsPlaying ? 'Streaming' : 'Play' if (!episode.progress) return this.$elapsedPretty(episode.duration) if (episode.progress.isFinished) return 'Finished' - var remaining = Math.floor(episode.progress.duration - episode.progress.currentTime) + + const duration = episode.progress.duration || episode.duration + const remaining = Math.floor(duration - episode.progress.currentTime) return `${this.$elapsedPretty(remaining)} left` }, playClick(episodeToPlay) {