mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-14 16:04:47 +02:00
Fix:Save local media progress when downloading library item by requesting user media progress with item from server (will require server update) #145
This commit is contained in:
parent
31c753ffcc
commit
b219756cb7
6 changed files with 114 additions and 48 deletions
|
@ -97,6 +97,11 @@ export default {
|
|||
this.$eventBus.$emit('new-local-library-item', data.localLibraryItem)
|
||||
}
|
||||
|
||||
if (data.localMediaProgress) {
|
||||
console.log('onItemDownloadComplete updating local media progress', data.localMediaProgress.id)
|
||||
this.$store.commit('globals/updateLocalMediaProgress', data.localMediaProgress)
|
||||
}
|
||||
|
||||
this.$store.commit('globals/removeItemDownload', data.libraryItemId)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue