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

This commit is contained in:
advplyr 2022-04-17 17:52:06 -05:00
parent 5d305c96ad
commit d69f6020c6
5 changed files with 30 additions and 7 deletions

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