mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-08 00:15:03 +02:00
Fix:Mark as finished once media has ended #635
This commit is contained in:
parent
c3b33ea37a
commit
1bd657f07d
2 changed files with 1 additions and 5 deletions
|
@ -91,7 +91,7 @@ class MediaProgress {
|
|||
|
||||
var timeRemaining = this.duration - this.currentTime
|
||||
// If time remaining is less than 5 seconds then mark as finished
|
||||
if ((this.progress >= 1 || (!isNaN(timeRemaining) && timeRemaining < 5)) && !this.isFinished) {
|
||||
if ((this.progress >= 1 || (!isNaN(timeRemaining) && timeRemaining < 5))) {
|
||||
this.isFinished = true
|
||||
this.finishedAt = Date.now()
|
||||
this.progress = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue