mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-28 11:22:43 +01:00
Fix:Mark as not finished when duration is not set in media progress #771
This commit is contained in:
1 parent
59c5e2c1d9
commit
76d668514e
2 files changed
+2
-1
No files matched your search
@@ -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))) {
|
||||
if ((this.progress >= 1 || (this.duration && !isNaN(timeRemaining) && timeRemaining < 5))) {
|
||||
this.isFinished = true
|
||||
this.finishedAt = Date.now()
|
||||
this.progress = 1
|
||||
|
||||
Reference in new issue
Block a user