Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TorrentInfo ¶
type TorrentInfo struct { Title string `json:"title,omitempty"` Season int `json:"season,omitempty"` Episode int `json:"episode,omitempty"` Year int `json:"year,omitempty"` Resolution string `json:"resolution,omitempty"` //1080p etc Quality string `json:"quality,omitempty"` Codec string `json:"codec,omitempty"` Audio string `json:"audio,omitempty"` Service string `json:"service,omitempty"` // NF etc Group string `json:"group,omitempty"` Region string `json:"region,omitempty"` Extended bool `json:"extended,omitempty"` Hardcoded bool `json:"hardcoded,omitempty"` Limited bool `json:"limited,omitempty"` Proper bool `json:"proper,omitempty"` Repack bool `json:"repack,omitempty"` // also rerip Container string `json:"container,omitempty"` Widescreen bool `json:"widescreen,omitempty"` Website string `json:"website,omitempty"` Language string `json:"language,omitempty"` Sbs string `json:"sbs,omitempty"` Unrated bool `json:"unrated,omitempty"` Size string `json:"size,omitempty"` Threed bool `json:"3d,omitempty"` Country string `json:"country,omitempty"` IsMovie bool `json:"ismovie"` // true if this is a movie, false if tv show }
TorrentInfo is the resulting structure returned by Parse important, season/episode are 0,0 for movies (so you can't have S00E00 file!)
func Parse ¶
func Parse(filename string) (*TorrentInfo, error)
Parse breaks up the given filename in TorrentInfo algo - remove the file extention if its one of known, then parse the rest the title is the last part.
func (TorrentInfo) Tojson ¶
func (t TorrentInfo) Tojson() (string, error)
Click to show internal directories.
Click to hide internal directories.