Documentation
¶
Overview ¶
Package mediamanagement provides access to global media management settings (episode naming formats, colon replacement, extra file importing, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service exposes read/write access to the single media_management row.
func NewService ¶
NewService creates a new Service backed by the given Querier.
type Settings ¶
type Settings struct {
RenameEpisodes bool
StandardEpisodeFormat string
DailyEpisodeFormat string
AnimeEpisodeFormat string
SeriesFolderFormat string
SeasonFolderFormat string
ColonReplacement string // "delete" | "dash" | "space-dash" | "smart"
ImportExtraFiles bool
ExtraFileExtensions []string // parsed from comma-separated DB string
UnmonitorDeletedEpisodes bool
// RecycleBinPath is where replaced and deleted episode files go; ""
// deletes them permanently.
RecycleBinPath string
// RecycleBinCleanupDays: files older than this in the recycle bin are
// deleted; 0 = never.
RecycleBinCleanupDays int
}
Settings is the application-level view of the media_management table.
type ValidationError ¶
type ValidationError struct{ Msg string }
ValidationError explains why settings can't be saved.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string