mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
When trying to PreCache, wait for ImageCache to be available
This commit is contained in:
parent
0c7c6ba020
commit
cc14485194
3 changed files with 30 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue