Scanner update - remove and update audiobooks on scans

This commit is contained in:
advplyr 2021-08-24 07:15:56 -05:00
parent db2f2d6660
commit c59cc52667
12 changed files with 239 additions and 65 deletions

View file

@ -83,9 +83,15 @@ export default {
}
this.$store.commit('audiobooks/remove', audiobook)
},
scanComplete() {
scanComplete(results) {
if (!results) results = {}
this.$store.commit('setIsScanning', false)
this.$toast.success('Scan Finished')
var scanResultMsgs = []
if (results.added) scanResultMsgs.push(`${results.added} added`)
if (results.updated) scanResultMsgs.push(`${results.updated} updated`)
if (results.removed) scanResultMsgs.push(`${results.removed} removed`)
if (!scanResultMsgs.length) this.$toast.success('Scan Finished\nEverything was up to date')
else this.$toast.success('Scan Finished\n' + scanResultMsgs.join('\n'))
},
scanStart() {
this.$store.commit('setIsScanning', true)

View file

@ -1,6 +1,6 @@
{
"name": "audiobookshelf-client",
"version": "0.9.71-beta",
"version": "0.9.72-beta",
"description": "Audiobook manager and player",
"main": "index.js",
"scripts": {