From 71f549afbf9f85748dc2096ad5e98effbd9c1600 Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 27 Jan 2026 20:15:58 -0500 Subject: [PATCH] fix(configuration): ensure default PIDs are set for Album and Track Signed-off-by: Deluan --- conf/configuration.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/configuration.go b/conf/configuration.go index 6b735caf..6245dbd3 100644 --- a/conf/configuration.go +++ b/conf/configuration.go @@ -1,6 +1,7 @@ package conf import ( + "cmp" "fmt" "net/url" "os" @@ -369,6 +370,10 @@ func Load(noConfigDump bool) { disableExternalServices() } + // Make sure we don't have empty PIDs + Server.PID.Album = cmp.Or(Server.PID.Album, consts.DefaultAlbumPID) + Server.PID.Track = cmp.Or(Server.PID.Track, consts.DefaultTrackPID) + logDeprecatedOptions("Scanner.GenreSeparators", "") logDeprecatedOptions("Scanner.GroupAlbumReleases", "") logDeprecatedOptions("DevEnableBufferedScrobble", "") // Deprecated: Buffered scrobbling is now always enabled and this option is ignored