mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 01:05:25 +02:00
Fix player content url, update user progress object include media entity id, update reset progress route
This commit is contained in:
parent
3d2bbc7719
commit
6a06ba4327
10 changed files with 65 additions and 35 deletions
|
@ -338,6 +338,8 @@ function cleanUserObject(db, userObj) {
|
|||
var liProgress = new LibraryItemProgress() // New Progress Object
|
||||
liProgress.id = userAudiobookData.audiobookId // This ID will be updated when library item is created
|
||||
liProgress.libraryItemId = userAudiobookData.audiobookId
|
||||
liProgress.mediaEntityId = userAudiobookData.audiobookId
|
||||
liProgress.duration = userAudiobookData.totalDuration
|
||||
liProgress.isFinished = !!userAudiobookData.isRead
|
||||
Object.keys(liProgress.toJSON()).forEach((key) => {
|
||||
if (userAudiobookData[key] !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue