When trying to PreCache, wait for ImageCache to be available

This commit is contained in:
Deluan 2022-12-28 23:01:52 -05:00
parent 0c7c6ba020
commit cc14485194
3 changed files with 30 additions and 15 deletions

View file

@ -84,7 +84,7 @@ func createScanner() scanner.Scanner {
fileCache := artwork.GetImageCache()
fFmpeg := ffmpeg.New()
artworkArtwork := artwork.NewArtwork(dataStore, fileCache, fFmpeg)
cacheWarmer := artwork.NewCacheWarmer(artworkArtwork)
cacheWarmer := artwork.NewCacheWarmer(artworkArtwork, fileCache)
broker := events.GetBroker()
scannerScanner := scanner.New(dataStore, playlists, cacheWarmer, broker)
return scannerScanner