Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoMatch = errors.New("no match")
)
Functions ¶
This section is empty.
Types ¶
type Classification ¶ added in v0.5.0
type Classification struct { ContentType model.NullContentType Content *model.Content ContentAttributes }
func (*Classification) ApplyHint ¶ added in v0.5.0
func (c *Classification) ApplyHint(h model.TorrentHint)
type Classifier ¶
type ContentAttributes ¶ added in v0.5.0
type ContentAttributes struct { Languages model.Languages LanguageMulti bool Episodes model.Episodes VideoResolution model.NullVideoResolution VideoSource model.NullVideoSource VideoCodec model.NullVideoCodec Video3d model.NullVideo3d VideoModifier model.NullVideoModifier ReleaseGroup model.NullString }
func (*ContentAttributes) ApplyHint ¶ added in v0.5.0
func (a *ContentAttributes) ApplyHint(h model.TorrentHint)
func (*ContentAttributes) InferVideoAttributes ¶ added in v0.7.5
func (a *ContentAttributes) InferVideoAttributes(input string)
type FallbackClassifier ¶ added in v0.5.0
type FallbackClassifier struct{}
func (FallbackClassifier) Classify ¶ added in v0.5.0
func (c FallbackClassifier) Classify(_ context.Context, t model.Torrent) (Classification, error)
func (FallbackClassifier) Key ¶ added in v0.5.0
func (c FallbackClassifier) Key() string
func (FallbackClassifier) Priority ¶ added in v0.5.0
func (c FallbackClassifier) Priority() int
type Params ¶
type Params struct { fx.In SubClassifiers []lazy.Lazy[SubClassifier] `group:"content_classifiers"` Logger *zap.SugaredLogger }
type SubClassifier ¶ added in v0.5.0
type SubClassifier interface { Classifier Key() string Priority() int }
Click to show internal directories.
Click to hide internal directories.