diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mediaplayer/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mediaplayer/main.go b/cmd/mediaplayer/main.go index 3419763..7e5df5c 100644 --- a/cmd/mediaplayer/main.go +++ b/cmd/mediaplayer/main.go @@ -76,10 +76,10 @@ func run(args []string) error { hasher := auth.NewBCryptHasher(12) sm := auth.NewSessionManager(store, clk, time.Duration(cfg.SessionTimeoutHours)*time.Hour) - mediaSvc := service.NewMediaService(store, clk, cfg.MediaRoot) - prober := probe.NewFFProber() thumbGen := thumb.NewFFmpegGenerator() + mediaSvc := service.NewMediaService(store, clk, cfg.MediaRoot, thumbGen, prober) + fsScanner := scanner.NewFSScanner(store, prober, thumbGen, clk, cfg.MediaRoot) adminSvc := service.NewAdminService(store, clk, hasher, fsScanner, cfg.MediaRoot) |
