Add optional MDBList movie ratings
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"github.com/ponzischeme89/memby/server/internal/foryou"
|
||||
"github.com/ponzischeme89/memby/server/internal/library"
|
||||
"github.com/ponzischeme89/memby/server/internal/logging"
|
||||
"github.com/ponzischeme89/memby/server/internal/mdblist"
|
||||
"github.com/ponzischeme89/memby/server/internal/radarr"
|
||||
"github.com/ponzischeme89/memby/server/internal/recommend"
|
||||
"github.com/ponzischeme89/memby/server/internal/sonarr"
|
||||
@@ -90,6 +91,7 @@ func run(log *slog.Logger, events *logging.Buffer) error {
|
||||
}
|
||||
|
||||
embyClient := emby.New(cfg.EmbyURL, cfg.EmbyPublicURL, cfg.ClientName, cfg.UpstreamTimeout)
|
||||
mdblistClient := mdblist.New(mdblist.DefaultBaseURL, cfg.UpstreamTimeout)
|
||||
var sonarrClient *sonarr.Client
|
||||
if cfg.SonarrURL != "" {
|
||||
sonarrClient = sonarr.New(cfg.SonarrURL, cfg.SonarrAPIKey, cfg.UpstreamTimeout)
|
||||
@@ -147,6 +149,7 @@ func run(log *slog.Logger, events *logging.Buffer) error {
|
||||
ForYou: forYouService,
|
||||
Sonarr: sonarrClient,
|
||||
Radarr: radarrClient,
|
||||
MDBList: mdblistClient,
|
||||
Syncer: syncer,
|
||||
Log: log,
|
||||
Events: events,
|
||||
|
||||
Reference in New Issue
Block a user