🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
feat(server): new option to set the default for ReportRealPath on new players
Deluan74348a340f5e
diff --git a/conf/configuration.go b/conf/configuration.goindex a2427ab04..93388ee8c 100644--- a/conf/configuration.go+++ b/conf/configuration.go@@ -62,6 +62,7 @@ type configOptions struct {IgnoredArticles stringIndexGroups stringSubsonicArtistParticipations bool+ DefaultReportRealPath boolFFmpegPath stringMPVPath stringMPVCmdTemplate string@@ -447,6 +448,7 @@ func init() {viper.SetDefault("ignoredarticles", "The El La Los Las Le Les Os As O A")viper.SetDefault("indexgroups", "A B C D E F G H I J K L M N O P Q R S T U V W X-Z(XYZ) [Unknown]([)")viper.SetDefault("subsonicartistparticipations", false)+ viper.SetDefault("defaultreportrealpath", false)viper.SetDefault("ffmpegpath", "")viper.SetDefault("mpvcmdtemplate", "mpv --audio-device=%d --no-audio-display --pause %f --input-ipc-server=%s")diff --git a/core/players.go b/core/players.goindex 878136fd4..1cba4893b 100644--- a/core/players.go+++ b/core/players.go@@ -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, ipUserId: 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)}