Don't send scrobbles/nowPlaying updates to Last.fm if user has not authorized
This commit is contained in:
@@ -13,6 +13,7 @@ type Scrobble struct {
|
||||
}
|
||||
|
||||
type Scrobbler interface {
|
||||
IsAuthorized(ctx context.Context, userId string) bool
|
||||
NowPlaying(ctx context.Context, userId string, track *model.MediaFile) error
|
||||
Scrobble(ctx context.Context, userId string, scrobbles []Scrobble) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user