Add option to disable external scrobbling per player

This commit is contained in:
Deluan
2021-06-23 17:50:15 -04:00
parent 5001518260
commit abe8015745
6 changed files with 47 additions and 16 deletions
+4 -3
View File
@@ -41,9 +41,10 @@ func (p *players) Register(ctx context.Context, id, client, userAgent, ip string
log.Debug("Found matching player", "id", plr.ID, "client", client, "username", userName, "type", userAgent)
} else {
plr = &model.Player{
ID: uuid.NewString(),
UserName: userName,
Client: client,
ID: uuid.NewString(),
UserName: userName,
Client: client,
ScrobbleEnabled: true,
}
log.Info("Registering new player", "id", plr.ID, "client", client, "username", userName, "type", userAgent)
}