🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
feat: add EnableArtworkUpload and CoverArtQuality to insights
Deluandc99994bdd65
diff --git a/core/metrics/insights.go b/core/metrics/insights.goindex 5f3f491ea..b87f1df5e 100644--- a/core/metrics/insights.go+++ b/core/metrics/insights.go@@ -193,6 +193,8 @@ var staticData = sync.OnceValue(func() insights.Data {data.Config.TLSConfigured = conf.Server.TLSCert != "" && conf.Server.TLSKey != ""data.Config.DefaultBackgroundURLSet = conf.Server.UILoginBackgroundURL == consts.DefaultUILoginBackgroundURLdata.Config.EnableArtworkPrecache = conf.Server.EnableArtworkPrecache+ data.Config.EnableArtworkUpload = conf.Server.EnableArtworkUpload+ data.Config.CoverArtQuality = conf.Server.CoverArtQualitydata.Config.EnableCoverAnimation = conf.Server.EnableCoverAnimationdata.Config.EnableNowPlaying = conf.Server.EnableNowPlayingdata.Config.EnableDownloads = conf.Server.EnableDownloadsdiff --git a/core/metrics/insights/data.go b/core/metrics/insights/data.goindex 27186e020..b316c866d 100644--- a/core/metrics/insights/data.go+++ b/core/metrics/insights/data.go@@ -63,6 +63,8 @@ type Data struct {EnableMediaFileCoverArt bool `json:"enableMediaFileCoverArt,omitempty"`EnableJukebox bool `json:"enableJukebox,omitempty"`EnablePrometheus bool `json:"enablePrometheus,omitempty"`+ EnableArtworkUpload bool `json:"enableArtworkUpload,omitempty"`+ CoverArtQuality int `json:"coverArtQuality,omitempty"`EnableCoverAnimation bool `json:"enableCoverAnimation,omitempty"`EnableNowPlaying bool `json:"enableNowPlaying,omitempty"`SessionTimeout uint64 `json:"sessionTimeout,omitempty"`