mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-09 13:28:43 +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:
@@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user