Fix podcast episode playback session duration, use podcast episode plaintext description

This commit is contained in:
advplyr committed 2022-04-17 17:52:06 -05:00
1 parent 5d305c96ad
commit d69f6020c6
5 files changed
+30 -7

No files matched your search

+6
View File
@@ -251,5 +251,11 @@ class Podcast {
getPlaybackAuthor() {
return this.metadata.author
}
getEpisodeDuration(episodeId) {
var episode = this.episodes.find(ep => ep.id == episodeId)
if (!episode) return 0
return episode.duration
}
}
module.exports = Podcast