This commit is contained in:
Eyad 2026-05-06 00:23:44 +02:00 committed by GitHub
commit 07f16f9681
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 145 additions and 6 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,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