mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
Fix:Podcast episode time remaining shown on button showing 0 seconds after toggling mark as finished
This commit is contained in:
parent
fececd4651
commit
d38058e1d2
2 changed files with 6 additions and 2 deletions
|
@ -155,7 +155,9 @@ export default {
|
|||
if (this.episodeIdStreaming === episode.id) return this.streamIsPlaying ? 'Streaming' : 'Play'
|
||||
if (!episode.progress) return this.$elapsedPretty(episode.duration)
|
||||
if (episode.progress.isFinished) return 'Finished'
|
||||
var remaining = Math.floor(episode.progress.duration - episode.progress.currentTime)
|
||||
|
||||
const duration = episode.progress.duration || episode.duration
|
||||
const remaining = Math.floor(duration - episode.progress.currentTime)
|
||||
return `${this.$elapsedPretty(remaining)} left`
|
||||
},
|
||||
playClick(episodeToPlay) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue