Podcast episode playing fix title and author

This commit is contained in:
advplyr 2022-03-26 18:30:58 -05:00
parent 12027b9a76
commit 03bfecefee
2 changed files with 17 additions and 1 deletions

View file

@ -39,6 +39,10 @@ export default class PlayerHandler {
get playerPlaying() {
return this.playerState === 'PLAYING'
}
get episode() {
if (!this.episodeId) return null
return this.libraryItem.media.episodes.find(ep => ep.id === this.episodeId)
}
load(libraryItem, episodeId, playWhenReady) {
if (!this.player) this.switchPlayer()