Documentation ¶
Index ¶
- Constants
- Variables
- func CheckTags(tags *TTags) error
- func GatherATag(info *ffinfo.File) (string, error)
- func GatherExtension(info *ffinfo.File) (string, error)
- func GatherSDHD(info *ffinfo.File) (string, error)
- func GatherSTag(info *ffinfo.File) (string, error)
- func GatherSizeTag(info *ffinfo.File) (string, error)
- func HMSMSToSeconds(hhmmssms string) float64
- func RegisterSchema(name string, schema *TSchema)
- func Schemas() []string
- func ToString(tags *TTags, schemaName string) (string, error)
- type TAudio
- type TFormat
- type TQuality
- type TResolution
- type TSchema
- type TScript
- type TTagname
- func (o *TTagname) AddTag(typ string, val string)
- func (o *TTagname) Check(isDeepCheck bool) error
- func (o *TTagname) ConvertTo(schemaName string) (string, error)
- func (o *TTagname) Describe() (*TFormat, error)
- func (o *TTagname) FFInfo() (*ffinfo.File, error)
- func (o *TTagname) GatherATag() (string, error)
- func (o *TTagname) GatherExtension() (string, error)
- func (o *TTagname) GatherSDHD() (string, error)
- func (o *TTagname) GatherSTag() (string, error)
- func (o *TTagname) GatherSizeTag() (string, error)
- func (o *TTagname) GetAudio() ([]TAudio, error)
- func (o *TTagname) GetFormat() (string, error)
- func (o *TTagname) GetQuality() (*TQuality, error)
- func (o *TTagname) GetSubtitle() ([]string, error)
- func (o *TTagname) GetTag(typ string) (string, error)
- func (o *TTagname) GetTags(typ string) []string
- func (o *TTagname) GetType() (string, error)
- func (o *TTagname) Len() int
- func (o *TTagname) ListTags() []string
- func (o *TTagname) RemoveHash()
- func (o *TTagname) RemoveTags(typ string)
- func (o *TTagname) RtimgCheck(filepath string) error
- func (o *TTagname) RtimgStrip(filepath string) error
- func (o *TTagname) Schema() string
- func (o *TTagname) SetSource(path string)
- func (o *TTagname) SetTag(typ string, val string)
- func (o *TTagname) Source() string
- func (o *TTagname) State() error
- type TTags
- func (o *TTags) AddTag(typ, val string)
- func (o *TTags) GetTag(typ string) (string, error)
- func (o *TTags) GetTags(typ string) []string
- func (o *TTags) MustHave(args ...string) error
- func (o *TTags) MustNotHave(args ...string) error
- func (o *TTags) RemoveTags(typ string)
- func (o *TTags) State() error
- type Tag
Constants ¶
View Source
const ( CheckNone = iota - 1 CheckNormal CheckStrict CheckDeep CheckDeepNormal = CheckDeep | CheckNormal CheckDeepStrict = CheckDeep | CheckStrict )
-
Variables ¶
View Source
var ErrTagnameIsNil = fmt.Errorf("Tagname object is <nil>")
Functions ¶
func HMSMSToSeconds ¶
HMSMSToSeconds - converts timecode (H:M:S.MS) to seconds float64 (S.MS).
func RegisterSchema ¶
RegisterSchema - parameter name is caseinsensitive
Types ¶
type TFormat ¶
type TFormat struct { Sar string Audio []TAudio Subtitle []string Quality int CacheType int Sbs bool // contains filtered or unexported fields }
TFormat -
type TResolution ¶
type TResolution struct {
W, H int
}
TResolution -
func (TResolution) String ¶
func (o TResolution) String() string
type TSchema ¶
type TSchema struct { // MustHaveByType []string // NonUniqueByType []string // can be placed multiple times // Valid []string // ValidByType []string // if empty then any tag is valid // Invalid []string // InvalidByType []string ToStringHeadOrderByType []string ToStringTailOrderByType []string // ReadFilter func(typ, val string) (string, string, error) // WriteFilter func(typ, val string) (string, string, error) UnmarshallFilter func(in, out *TTags, typ, val string, firstRun bool) error MarshallFilter func(in, out *TTags, typ, val string, firstRun bool) error // contains filtered or unexported fields }
TSchema -
type TTagname ¶
type TTagname struct {
// contains filtered or unexported fields
}
TTagname -
func NewFromFilename ¶
NewFromFilename -
func NewFromString ¶
func NewFromString(dir string, str string, isDeepCheck bool, schemaNames ...string) (*TTagname, error)
NewFromString -
func (*TTagname) GatherExtension ¶
GatherExtension -
Click to show internal directories.
Click to hide internal directories.