mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 16:44:16 +01:00
Fix:Mark as finished once media has ended #635
This commit is contained in:
parent
c3b33ea37a
commit
1bd657f07d
@ -62,10 +62,6 @@ export default {
|
||||
{
|
||||
value: 'podcast',
|
||||
text: 'Podcasts'
|
||||
},
|
||||
{
|
||||
value: 'video',
|
||||
text: 'Videos'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user