parser

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanEpisode

func CleanEpisode(episode string) string

func CleanTitle

func CleanTitle(title string) string

Types

type Replacement

type Replacement struct {
	Regex *regexp.Regexp
	Sub   string
}

type TorrentInfo

type TorrentInfo struct {
	Title      string   `json:"title"`
	Season     int      `json:"season"`
	Episode    int      `json:"episode"`
	Year       int      `json:"year"`
	Group      string   `json:"group"`
	Website    string   `json:"website"`
	Resolution string   `json:"resolution"`
	Quality    string   `json:"quality"`
	Encodings  []string `json:"encodings"`
	Unrated    bool     `json:"unrated"`
	Uncensored bool     `json:"uncensored"`
	ThreeD     bool     `json:"3d"`
	Bluray     bool     `json:"bluray"`
}

TorrentInfo is the resulting structure returned by Parse

func Parse

func Parse(title, catType string) (*TorrentInfo, error)

func ParseTitle added in v0.5.0

func ParseTitle(title, catType string) (*TorrentInfo, error)

func (*TorrentInfo) String

func (t *TorrentInfo) String() string

Jump to

Keyboard shortcuts

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