Using checksums to detect modified stats in the iTunes Library

This commit is contained in:
Deluan 2016-03-15 11:04:17 -04:00
parent bb5d4c920d
commit 12aedc0996
3 changed files with 103 additions and 9 deletions

View file

@ -28,9 +28,11 @@ func init() {
utils.DefineSingleton(new(engine.Playlists), engine.NewPlaylists)
utils.DefineSingleton(new(engine.Search), engine.NewSearch)
utils.DefineSingleton(new(scanner.CheckSumRepository), persistence.NewCheckSumRepository)
utils.DefineSingleton(new(scanner.Scanner), scanner.NewItunesScanner)
// Other dependencies
utils.DefineSingleton(new(itunesbridge.ItunesControl), itunesbridge.NewItunesControl)
utils.DefineSingleton(new(scanner.Scanner), scanner.NewItunesScanner)
utils.DefineSingleton(new(gomate.DB), func() gomate.DB {
return gomate.NewLedisEmbeddedDB(persistence.Db())
})