This commit is contained in:
Alexander
2026-04-29 17:29:58 +02:00
parent 3ecc6aee62
commit 945aab82c2
24 changed files with 2038 additions and 822 deletions
+9
View File
@@ -13,6 +13,11 @@ type Config struct {
Metadata MetadataConfig `yaml:"metadata"`
Indexers []IndexerConfig `yaml:"indexers"`
Torrent TorrentConfig `yaml:"torrent"`
Storage StorageConfig `yaml:"storage"`
}
type StorageConfig struct {
BasePath string `yaml:"base_path"`
}
type AppConfig struct {
@@ -88,5 +93,9 @@ func Load(path string) (*Config, error) {
cfg.Torrent.SavePath = "/tmp/downloads"
}
if cfg.Storage.BasePath == "" {
cfg.Storage.BasePath = "/music"
}
return &cfg, nil
}