Documentation ¶
Index ¶
- Constants
- Variables
- func CleanSeriesTitle(title string) string
- func IsSceneTitle(title string) (bool, error)
- func NormalizeSeriesTitle(title string) string
- func ParseLanguage(title string) language.Tag
- func ParseReleaseGroup(title string) string
- func ParseSeriesName(title string) string
- func ParseSubtitleLanguage(fileName string) (language.Tag, error)
- type EpisodeInfo
- type Quality
- type QualityModel
- type Resolution
- type SeriesTitleInfo
Constants ¶
View Source
const ( RevisionDefault int = iota RevisionProper )
Variables ¶
View Source
var ( QualityUnknown = Quality{0, "Unknown"} QualitySDTV = Quality{1, "SDTV"} QualityDVD = Quality{2, "DVD"} QualityWEBDL1080p = Quality{3, "WEBDL-1080p"} QualityHDTV720p = Quality{4, "HDTV-720p"} QualityWEBDL720p = Quality{5, "WEBDL-720p"} QualityBluray720p = Quality{6, "Bluray-720p"} QualityBluray1080p = Quality{7, "Bluray-1080p"} QualityWEBDL480p = Quality{8, "WEBDL-480p"} QualityHDTV1080p = Quality{9, "HDTV-1080p"} QualityRAWHD = Quality{10, "Raw-HD"} QualityHDTV2160p = Quality{16, "HDTV-2160p"} QualityWEBDL2160p = Quality{18, "WEBDL-2160p"} QualityBluray2160p = Quality{19, "Bluray-2160p"} )
Functions ¶
func CleanSeriesTitle ¶
func IsSceneTitle ¶
This method should prefer false negatives over false positives. It's better not to use a title that might be scene than to use one that isn't scene
func NormalizeSeriesTitle ¶
Normalize a series title, removing all spaces, punctation and whitespace
func ParseLanguage ¶
func ParseReleaseGroup ¶
func ParseSeriesName ¶
ParseSeriesName parses just the name of the series from the title. If Parse fails internally then the passed in title is cleaned up and returned as-is.
Types ¶
type EpisodeInfo ¶
type EpisodeInfo struct { SeriesTitle string SeriesTitleInfo SeriesTitleInfo Quality QualityModel SeasonNumber int EpisodeNumbers []int AbsoluteEpisodeNumbers []int AirDate string Language language.Tag FullSeason bool Special bool ReleaseGroup string ReleaseHash string }
func Parse ¶
func Parse(title string) (*EpisodeInfo, error)
func ParsePath ¶
func ParsePath(path string) (*EpisodeInfo, error)
ParsePath extracts episode info from a full path
func (EpisodeInfo) IsAbsoluteNumbering ¶
func (i EpisodeInfo) IsAbsoluteNumbering() bool
func (EpisodeInfo) IsDaily ¶
func (i EpisodeInfo) IsDaily() bool
func (EpisodeInfo) IsPossibleSpecialEpisode ¶
func (i EpisodeInfo) IsPossibleSpecialEpisode() bool
func (EpisodeInfo) String ¶
func (i EpisodeInfo) String() string
type QualityModel ¶
func ParseQuality ¶
func ParseQuality(name string) QualityModel
func (QualityModel) String ¶
func (qm QualityModel) String() string
type Resolution ¶
type Resolution string
const ( Resolution480p Resolution = "480p" Resolution576p Resolution = "576p" Resolution720p Resolution = "720p" Resolution1080p Resolution = "1080p" Resolution2160p Resolution = "2160p" ResolutionUnknown Resolution = "unknown" )
func ParseResolution ¶
func ParseResolution(name string) Resolution
type SeriesTitleInfo ¶
func (SeriesTitleInfo) Equal ¶
func (i SeriesTitleInfo) Equal(title string) bool
func (SeriesTitleInfo) Normalize ¶
func (i SeriesTitleInfo) Normalize() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.