Add option to disable .m3u auto-import

This commit is contained in:
Deluan 2020-08-02 23:17:13 -04:00
parent 696a0feb31
commit 28d1428c90
3 changed files with 18 additions and 10 deletions

View file

@ -26,6 +26,7 @@ type configOptions struct {
EnableTranscodingConfig bool
TranscodingCacheSize string
ImageCacheSize string
AutoImportPlaylists bool
IgnoredArticles string
IndexGroups string
@ -83,6 +84,7 @@ func init() {
viper.SetDefault("enabletranscodingconfig", false)
viper.SetDefault("transcodingcachesize", "100MB")
viper.SetDefault("imagecachesize", "100MB")
viper.SetDefault("autoimportplaylists", true)
// Config options only valid for file/env configuration
viper.SetDefault("ignoredarticles", "The El La Los Las Le Les Os As O A")