Don't send scrobbles/nowPlaying updates to Last.fm if user has not authorized

This commit is contained in:
Deluan
2021-06-22 22:27:53 -04:00
committed by Deluan Quintão
parent 8af7dab23d
commit 76acd7da89
4 changed files with 45 additions and 8 deletions
+1
View File
@@ -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
}