fix: address code review findings

This commit is contained in:
2026-07-19 19:11:22 +03:00
parent c70f46af27
commit f1839ad9e7
3 changed files with 8 additions and 13 deletions

View File

@@ -47,10 +47,13 @@ type TelegramConfig struct {
}
// ScannerConfig holds scanner engine parameters.
//
// Bootleg/Compilation filtering is intentionally unconditional: bootlegs,
// promotions, and pseudo-releases are always excluded (musicbrainz/api.go),
// and compilations are always included. These are not user-toggleable, so
// there are no corresponding config fields.
type ScannerConfig struct {
FuzzyThreshold float64 `yaml:"fuzzy_threshold"`
IgnoreBootlegs bool `yaml:"ignore_bootlegs"`
IncludeCompilations bool `yaml:"include_compilations"`
FuzzyThreshold float64 `yaml:"fuzzy_threshold"`
}
// LoadConfig reads a YAML file from path, parses it, applies defaults,