Documentation
¶
Overview ¶
Package release reads a release or subtitle name with the patterns the arrs and TRaSH publish, imported as published by cmd/release-patterns into patterns_gen.go and run by netregex with .NET's match semantics.
Index ¶
Constants ¶
const MaxNameLen = 512
MaxNameLen bounds what Parse reads: the name as given, cut to this many bytes at a rune boundary.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cut ¶
type Cut uint16
Cut is a set of cut tokens read from Radarr's EditionRegex captures; zero is unlabelled. Presentation words (IMAX, Open Matte, Remastered, Collector's, Signature and the like) never set a bit.
type Parsed ¶
type Parsed struct {
// contains filtered or unexported fields
}
Parsed is one name read by the imported tables; the zero value is a name nothing matched.
func Parse ¶
Parse reads a video string or a subtitle name with Sonarr's tables for an Episode and Radarr's for a Movie; any other Kind reads as nothing. It reads the name as given, at most MaxNameLen bytes of it: a caller holding a path passes its base name.
func (Parsed) Group ¶
Group is the release group after the arrs' clean, exception and invalid-group steps; "" when none.
func (Parsed) SeasonPack ¶
SeasonPack is true for an episode name stating a season and no episode marker, as epmarker reads them.
type Source ¶
type Source uint8
Source is the label the imported source patterns give a name; the last match counts, as in the arrs.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package netregex runs .NET-flavour regular expressions with .NET's match semantics, as dlclark/regexp2 defines them, in polynomial time.
|
Package netregex runs .NET-flavour regular expressions with .NET's match semantics, as dlclark/regexp2 defines them, in polynomial time. |