Fix initialize currentTime and ebookProgress for MediaProgress

This commit is contained in:
advplyr 2023-05-20 15:37:44 -05:00
parent 9f6bfeb839
commit be2d317325

View File

@ -46,11 +46,11 @@ class MediaProgress {
this.episodeId = progress.episodeId this.episodeId = progress.episodeId
this.duration = progress.duration || 0 this.duration = progress.duration || 0
this.progress = progress.progress this.progress = progress.progress
this.currentTime = progress.currentTime this.currentTime = progress.currentTime || 0
this.isFinished = !!progress.isFinished this.isFinished = !!progress.isFinished
this.hideFromContinueListening = !!progress.hideFromContinueListening this.hideFromContinueListening = !!progress.hideFromContinueListening
this.ebookLocation = progress.ebookLocation || null this.ebookLocation = progress.ebookLocation || null
this.ebookProgress = progress.ebookProgress this.ebookProgress = progress.ebookProgress || null
this.lastUpdate = progress.lastUpdate this.lastUpdate = progress.lastUpdate
this.startedAt = progress.startedAt this.startedAt = progress.startedAt
this.finishedAt = progress.finishedAt || null this.finishedAt = progress.finishedAt || null