Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultConfig ¶
CreateDefaultConfig creates a default configuration file
Types ¶
type APIConfig ¶
type APIConfig struct {
TMDB TMDBConfig `yaml:"tmdb"`
}
type Config ¶
type Config struct {
API APIConfig `yaml:"api"`
Scanner ScannerConfig `yaml:"scanner"`
Renamer RenamerConfig `yaml:"renamer"`
}
func LoadConfig ¶
LoadConfig loads the configuration from a YAML file
type PatternConfig ¶
type RenamerConfig ¶
type RenamerConfig struct {
DryRun bool `yaml:"dry_run"`
Type MediaType `yaml:"type"`
Patterns PatternConfig `yaml:"patterns"`
MaxResults int `yaml:"max_results"`
QuickMode bool `yaml:"quick_mode"`
}
type ScannerConfig ¶
type TMDBConfig ¶
type ValidationError ¶
ValidationError represents a configuration validation error
func (ValidationError) Error ¶
func (e ValidationError) Error() string
type ValidationErrors ¶
type ValidationErrors []ValidationError
ValidationErrors holds multiple validation errors
func (ValidationErrors) Error ¶
func (e ValidationErrors) Error() string
Click to show internal directories.
Click to hide internal directories.