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:
advplyr 2022-04-25 19:01:20 -05:00
parent 31c753ffcc
commit b219756cb7
6 changed files with 114 additions and 48 deletions

View file

@ -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)
}
},