Save Locations locally, add separate progress tracker

This commit is contained in:
Vincent Schmandt 2023-03-23 08:45:00 +01:00
parent 5078818295
commit 4d29ebd647
No known key found for this signature in database
GPG key ID: FA5B5F9C571C0669
5 changed files with 23 additions and 15 deletions

View file

@ -472,7 +472,7 @@ export default {
return duration - this.userMediaProgress.currentTime
},
progressPercent() {
return this.userMediaProgress ? Math.max(Math.min(1, this.userMediaProgress.progress), 0) : 0
return this.userMediaProgress ? Math.max(Math.min(1, Math.max(this.userMediaProgress.progress || 0, this.userMediaProgress.ebookProgress || 0)), 0) : 0
},
userProgressStartedAt() {
return this.userMediaProgress ? this.userMediaProgress.startedAt : 0