Flush albums and artists after each folder added/updated/deleted

This commit is contained in:
Deluan
2020-07-22 12:48:24 -04:00
parent 1b7f628759
commit 036f9d6730
4 changed files with 79 additions and 104 deletions
+2
View File
@@ -32,6 +32,8 @@ func NewTagScanner(rootFolder string, ds model.DataStore) *TagScanner {
}
}
const batchSize = 5
type (
artistMap map[string]struct{}
albumMap map[string]struct{}