add lastfm client to subsonic controller

This commit is contained in:
sentriz
2023-05-22 13:05:34 +01:00
parent dbcccdc811
commit 5e3b8daf96

View File

@@ -110,6 +110,7 @@ func New(opts Options) (*Server, error) {
PodcastsPath: opts.PodcastPath, PodcastsPath: opts.PodcastPath,
CacheAudioPath: opts.CacheAudioPath, CacheAudioPath: opts.CacheAudioPath,
CoverCachePath: opts.CoverCachePath, CoverCachePath: opts.CoverCachePath,
LastFMClient: lastfmClient,
Scrobblers: []scrobble.Scrobbler{ Scrobblers: []scrobble.Scrobbler{
lastfm.NewScrobbler(opts.DB, lastfmClient), lastfm.NewScrobbler(opts.DB, lastfmClient),
listenbrainz.NewScrobbler(), listenbrainz.NewScrobbler(),