fix(server): ensure that similar artists retrieved from provider are no more than limit (#4267)

* fix(provider): ensure that similar artists retreived from provider are no more than limit

* add overlimit multiplier
This commit is contained in:
Kendall Garner
2025-06-29 16:19:29 +00:00
committed by GitHub
parent 4f83987840
commit 91e7f7b5c9
5 changed files with 68 additions and 9 deletions
+2
View File
@@ -128,6 +128,7 @@ type configOptions struct {
DevInsightsInitialDelay time.Duration
DevEnablePlayerInsights bool
DevPluginCompilationTimeout time.Duration
DevExternalArtistFetchMultiplier float64
}
type scannerOptions struct {
@@ -599,6 +600,7 @@ func setViperDefaults() {
viper.SetDefault("devinsightsinitialdelay", consts.InsightsInitialDelay)
viper.SetDefault("devenableplayerinsights", true)
viper.SetDefault("devplugincompilationtimeout", time.Minute)
viper.SetDefault("devexternalartistfetchmultiplier", 1.5)
}
func init() {