Add image cache back

This commit is contained in:
Deluan authored and Deluan Quintão committed 2022-12-28 15:31:56 -05:00
1 parent 40bb211b39
commit 0da27e8a3f
5 files changed
+96 -41

No files matched your search

+2 -1
View File
@@ -45,7 +45,8 @@ func CreateNativeAPIRouter() *nativeapi.Router {
func CreateSubsonicAPIRouter() *subsonic.Router {
sqlDB := db.Db()
dataStore := persistence.New(sqlDB)
artwork := core.NewArtwork(dataStore)
fileCache := core.GetImageCache()
artwork := core.NewArtwork(dataStore, fileCache)
transcoderTranscoder := transcoder.New()
transcodingCache := core.GetTranscodingCache()
mediaStreamer := core.NewMediaStreamer(dataStore, transcoderTranscoder, transcodingCache)