fix: 🐛 fix current active episode

This commit is contained in:
Michel Roux 2024-08-15 16:42:51 +02:00
parent c91c17ae66
commit 68ada2b0e0

View File

@ -225,13 +225,14 @@ export default {
)
},
isCurrentEpisode(episode) {
return this.currentEpisode && this.currentEpisode.url === episode.url
return this.episode && this.episode.url === episode.url
},
isListening(episode) {
return (
episode.action &&
episode.action.action &&
episode.action.action.toLowerCase() === 'play' &&
episode.action.position > 0 &&
!this.hasEnded(episode)
)
},