mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-19 18:29:37 +00:00
Fix podcast episode playback session duration, use podcast episode plaintext description
This commit is contained in:
parent
5d305c96ad
commit
d69f6020c6
5 changed files with 30 additions and 7 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue