mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Add image cache back
This commit is contained in:
parent
40bb211b39
commit
0da27e8a3f
5 changed files with 96 additions and 41 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue