()
| 32 | } |
| 33 | |
| 34 | func DefaultConfig() *Config { |
| 35 | return &Config{ |
| 36 | DefaultDirectory: ".", |
| 37 | MaxFileSize: 100 * 1024 * 1024, // 100MB |
| 38 | EnableLogging: true, |
| 39 | LogLevel: "info", |
| 40 | ShowFileSize: true, |
| 41 | PreferredLyricsSource: "lyrics.ovh", |
| 42 | PreferredArtworkSource: "itunes", |
| 43 | MaxArtworkSize: 500, |
| 44 | EnableImageResize: true, |
| 45 | BatchConcurrency: 5, |
| 46 | BatchTimeout: 30, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func LoadConfig() (*Config, error) { |
| 51 | config := DefaultConfig() |
no outgoing calls
no test coverage detected