mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-16 08:21:29 +00:00
Merge 212734a92f into 47ea6b5092
This commit is contained in:
commit
07f16f9681
4 changed files with 145 additions and 6 deletions
|
|
@ -169,6 +169,7 @@ class MediaProgress extends Model {
|
|||
hideFromContinueListening: !!this.hideFromContinueListening,
|
||||
ebookLocation: this.ebookLocation,
|
||||
ebookProgress: this.ebookProgress,
|
||||
playbackRate: this.extraData?.playbackRate || null,
|
||||
lastUpdate: this.updatedAt.valueOf(),
|
||||
startedAt: this.createdAt.valueOf(),
|
||||
finishedAt: this.finishedAt?.valueOf() || null
|
||||
|
|
@ -209,6 +210,11 @@ class MediaProgress extends Model {
|
|||
this.changed('extraData', true)
|
||||
}
|
||||
|
||||
if (progressPayload.playbackRate !== undefined) {
|
||||
this.extraData.playbackRate = progressPayload.playbackRate
|
||||
this.changed('extraData', true)
|
||||
}
|
||||
|
||||
this.set(progressPayload)
|
||||
|
||||
// Reset hideFromContinueListening if the progress has changed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue