additional

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraCheck

type ExtraCheck func(ctx context.Context, meta api.PreparedMetadata, logger api.Logger) Result

type LanguageRule

type LanguageRule struct {
	Languages      []string
	RequireAudio   bool
	RequireSubs    bool
	RequireBoth    bool
	AllowOriginal  bool
	ApplyIfNonDisc bool
	ApplyIfNonBDMV bool
}

type Result

type Result struct {
	Allowed bool
	Reason  string
}

func Fail

func Fail(reason string) Result

func Pass

func Pass() Result

type RuleSet

type RuleSet struct {
	RequireUniqueID       bool
	RequireValidMISetting bool
	RequireAudioLanguages bool
	RequireDiscOnly       bool
	RequireMovieOnly      bool
	RequireTVOnly         bool
	RequireHEVCForTypes   []string
	MinResolution         string
	BlockAdult            bool
	AdultMessage          string
	Language              *LanguageRule
	BlockDVDRip           bool
	BlockExternalSubs     bool
	BlockSingleFileFolder bool
	BlockHardcodedSubs    bool
	BlockGroups           []string
	BlockGroupUnlessType  map[string][]string
	RequireSceneNFO       bool
	ExtraCheck            ExtraCheck
}

func RulesFor

func RulesFor(tracker string) (RuleSet, bool)

Jump to

Keyboard shortcuts

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