This commit is contained in:
Eyad 2026-07-09 18:35:12 -07:00 committed by GitHub
commit e0b62ce879
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 109 additions and 0 deletions

View file

@ -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