From 06b3a1f33eff45df24a1db050d0b24fb95bb7114 Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 12 Feb 2026 14:33:25 -0500 Subject: [PATCH] fix(insights): update HasCustomPID logic to use default constants Signed-off-by: Deluan --- core/metrics/insights.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/metrics/insights.go b/core/metrics/insights.go index f42e5c09..07162ded 100644 --- a/core/metrics/insights.go +++ b/core/metrics/insights.go @@ -220,7 +220,7 @@ var staticData = sync.OnceValue(func() insights.Data { data.Config.ScanWatcherWait = uint64(math.Trunc(conf.Server.Scanner.WatcherWait.Seconds())) data.Config.ScanOnStartup = conf.Server.Scanner.ScanOnStartup data.Config.ReverseProxyConfigured = conf.Server.ExtAuth.TrustedSources != "" - data.Config.HasCustomPID = conf.Server.PID.Track != "" || conf.Server.PID.Album != "" + data.Config.HasCustomPID = conf.Server.PID.Track != consts.DefaultTrackPID || conf.Server.PID.Album != consts.DefaultAlbumPID data.Config.HasCustomTags = len(conf.Server.Tags) > 0 return data