feat(server): warn users of ffmpeg extractor that it is not available anymore

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-02-28 12:39:30 -08:00 committed by Joe Stump
parent 39c317fd2d
commit 52503ee539
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -29,7 +29,7 @@ type configOptions struct {
DbPath string
LogLevel string
LogFile string
ScanInterval time.Duration
ScanInterval time.Duration // Deprecated: Remove before release
ScanSchedule string
SessionTimeout time.Duration
BaseURL string
@ -131,7 +131,7 @@ type scannerOptions struct {
Enabled bool
WatcherWait time.Duration
ScanOnStartup bool
Extractor string // Deprecated: BFR Remove before release?
Extractor string
GenreSeparators string // Deprecated: BFR Update docs
GroupAlbumReleases bool // Deprecated: BFR Update docs
}
@ -311,7 +311,10 @@ func Load(noConfigDump bool) {
}
// BFR Remove before release
Server.Scanner.Extractor = consts.DefaultScannerExtractor
if Server.Scanner.Extractor != consts.DefaultScannerExtractor {
log.Warn(fmt.Sprintf("Extractor '%s' is not implemented, using 'taglib'", Server.Scanner.Extractor))
Server.Scanner.Extractor = consts.DefaultScannerExtractor
}
// Call init hooks
for _, hook := range hooks {