Documentation ¶
Index ¶
- Variables
- func Capitalize(str string) string
- func CleanName(name string) string
- func Codec(str string) codec.Tag
- func CodecIndex(str string) ([]int, codec.Tag)
- func Duration(str string) (time.Duration, error)
- func Filename(filename string) string
- func Group(str string) string
- func GroupAfter(idx int, str string) string
- func GroupIndex(str string) ([]int, string)
- func Identity(str string) string
- func Language(lang string) (language.Tag, error)
- func Miscellaneous(str string) misc.List
- func MiscellaneousIndex(str string) ([]int, misc.List)
- func PhoneticNumber(num int) string
- func Quality(str string) quality.Tag
- func QualityIndex(str string) ([]int, quality.Tag)
- func Source(str string) source.Tag
- func SourceIndex(str string) ([]int, source.Tag)
- func Tags(name string) []string
Constants ¶
This section is empty.
Variables ¶
var Codecs = makeMatcher(codecMap)
Codecs is a list of parseable codecs
var Qualities = makeMatcher(qualityMap)
Qualities list all possible qualities to parse
var Sources = makeMatcher(sourceMap)
Sources lists all prossible sources to parse
Functions ¶
func Capitalize ¶
Capitalize returns the string with proper english capitalization
func CodecIndex ¶
CodecIndex returns the codec tag and the index in the string
func Duration ¶
Duration takes a textual representation of a duration (e.g. 2h38m) and returns the parsed duration from the time package. An error is returned if the input was invalid (i.e. could not be parsed into a duration)
func GroupAfter ¶
GroupAfter returns the release group of the string only occuring after the position of idx
func GroupIndex ¶
GroupIndex returns the release group as well as the index for the match
func Identity ¶
Identity returns a string where special characters are removed. The returned string is suitable for use in an identity string
func Language ¶
Language returns a language taken when given the english word for a language (e.g. english). If the string is not a known language an error is returned
func Miscellaneous ¶
Miscellaneous returns a list of miscellaneous media tags from a string
func MiscellaneousIndex ¶
MiscellaneousIndex returns all miscellaneous tags with all their indexes
func PhoneticNumber ¶
PhoneticNumber converts an integer into a human readable string
func QualityIndex ¶
QualityIndex returns the quality tag and the index in the string
func SourceIndex ¶
SourceIndex returns the source tag and the index in the string
Types ¶
This section is empty.