mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
feat(configuration): set maxconcurrenttranscodes to the maximum of 4 or available CPU cores
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
faa4acf583
commit
6fe2b76ac1
@ -666,7 +666,7 @@ func setViperDefaults() {
|
||||
viper.SetDefault("enablem3uexternalalbumart", false)
|
||||
viper.SetDefault("enablemediafilecoverart", true)
|
||||
viper.SetDefault("autotranscodedownload", false)
|
||||
viper.SetDefault("maxconcurrenttranscodes", 4)
|
||||
viper.SetDefault("maxconcurrenttranscodes", max(4, runtime.NumCPU()))
|
||||
viper.SetDefault("defaultdownsamplingformat", consts.DefaultDownsamplingFormat)
|
||||
viper.SetDefault("search.fullstring", false)
|
||||
viper.SetDefault("search.backend", "fts")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user