parse

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Codecs = makeMatcher(codecMap)

Codecs is a list of parseable codecs

View Source
var Qualities = makeMatcher(qualityMap)

Qualities list all possible qualities to parse

View Source
var Sources = makeMatcher(sourceMap)

Sources lists all prossible sources to parse

Functions

func CleanName

func CleanName(name string) string

CleanName returns the movie name cleaned from punctuation

func Codec

func Codec(name string) codec.Tag

Codec parses the codec from a file name

func Duration

func Duration(str string) (time.Duration, error)

func Filename

func Filename(filename string) string

Filename returns the filename of the file without extension

func Group

func Group(name string) string

Group parses and returns the release group

func Language

func Language(lang string) (language.Tag, error)

func PhoneticNumber

func PhoneticNumber(num int) string

PhoneticNumber converts an integer into a human readable string

func Quality

func Quality(name string) quality.Tag

Quality finds the quality of the media

func Source

func Source(name string) source.Tag

Source parses the source from a filename

func Tags

func Tags(name string) []string

Tags returns a string as tags split by non-word characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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