Add:Downloaded filter for podcast episodes #959

Fix:More menu button not working for podcasts with some episodes downloaded
This commit is contained in:
advplyr 2023-11-25 12:56:29 -06:00
parent 257a1ceb51
commit 579785d2c6
3 changed files with 15 additions and 8 deletions

View file

@ -132,10 +132,10 @@ export default {
}
},
itemProgressPercent() {
return this.itemProgress ? this.itemProgress.progress : 0
return this.itemProgress?.progress || 0
},
userIsFinished() {
return this.itemProgress ? !!this.itemProgress.isFinished : false
return !!this.itemProgress?.isFinished
},
timeRemaining() {
if (this.streamIsPlaying) return 'Playing'
@ -151,7 +151,7 @@ export default {
return this.$store.getters['globals/getDownloadItem'](this.libraryItemId, this.episode.id)
},
localEpisodeId() {
return this.localEpisode ? this.localEpisode.id : null
return this.localEpisode?.id || null
}
},
methods: {