feat(server): new option to set the default for ReportRealPath on new players

Implements #3653

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2025-02-20 22:24:09 -05:00
parent 09ae41a2da
commit 74348a340f
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"time"
"github.com/navidrome/navidrome/conf"
"github.com/navidrome/navidrome/consts"
"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/model"
@@ -52,6 +53,7 @@ func (p *players) Register(ctx context.Context, playerID, client, userAgent, ip
UserId: user.ID,
Client: client,
ScrobbleEnabled: true,
ReportRealPath: conf.Server.DefaultReportRealPath,
}
log.Info(ctx, "Registering new player", "id", plr.ID, "client", client, "username", username, "type", userAgent)
}