mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 20:31:36 +00:00
Merge 80e52c0cbc into 82aec5f60c
This commit is contained in:
commit
e0b62ce879
2 changed files with 109 additions and 0 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,12 @@ class MediaProgress extends Model {
|
|||
this.changed('extraData', true)
|
||||
}
|
||||
|
||||
if (progressPayload.playbackRate !== undefined) {
|
||||
this.extraData.playbackRate = progressPayload.playbackRate
|
||||
this.changed('extraData', true)
|
||||
delete progressPayload.playbackRate
|
||||
}
|
||||
|
||||
this.set(progressPayload)
|
||||
|
||||
// Reset hideFromContinueListening if the progress has changed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue