conf

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TMDBAPIKey      string    `env:"TMDB_API_KEY" envDefault:"not-set"`
	MediaPath       string    `env:"MEDIA_PATH" envDefault:"./"`
	Recursive       bool      `env:"RECURSIVE" envDefault:"true"`
	IncludeNotFound bool      `env:"INCLUDE_NOT_FOUND" envDefault:"false"`
	DryRun          bool      `env:"DRY_RUN" envDefault:"true"`
	MoviePattern    string    `env:"MOVIE_PATTERN" envDefault:"{name} - {year}{extension}"`
	TvShowPattern   string    `env:"TVSHOW_PATTERN" envDefault:"{name} - {season}x{episode}{extension}"`
	Type            MediaType `env:"TYPE" envDefault:"movie"`
	MaxResults      int       `env:"MAX_RESULTS" envDefault:"5"`
	QuickMode       bool      `env:"QUICK_MODE" envDefault:"false"`
}

func LoadConfig

func LoadConfig() Config

type MediaType

type MediaType string
const (
	Movie  MediaType = "movie"
	TvShow MediaType = "tvshow"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL