Documentation ¶
Index ¶
- type Formatter
- func (f Formatter) GenerateMixSubName(videoFileName, subExt string, subLang language3.MyLanguage, ...) (string, string, string)
- func (f Formatter) GenerateMixSubNameBase(fileNameWithOutExt, subExt string, subLang language3.MyLanguage, ...) (string, string, string)
- func (f Formatter) GetFormatterFormatterName() int
- func (f Formatter) GetFormatterName() string
- func (f Formatter) IsMatchThisFormat(subName string) (bool, string, string, language3.MyLanguage, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct { }
func NewFormatter ¶
func NewFormatter() *Formatter
func (Formatter) GenerateMixSubName ¶
func (f Formatter) GenerateMixSubName(videoFileName, subExt string, subLang language3.MyLanguage, extraSubPreName string) (string, string, string)
GenerateMixSubName 通过视频和字幕信息,生成当前实现接口的字幕命名格式。extraSubPreName 一般是填写字幕网站,不填写则留空 - 新名称、新名称带有 default 标记,新名称带有 forced 标记
func (Formatter) GenerateMixSubNameBase ¶
func (Formatter) GetFormatterFormatterName ¶
func (Formatter) GetFormatterName ¶
GetFormatterName 当前的 Formatter 是那个
func (Formatter) IsMatchThisFormat ¶
func (f Formatter) IsMatchThisFormat(subName string) (bool, string, string, language3.MyLanguage, string)
IsMatchThisFormat 是否满足当前实现接口的字幕命名格式 - 是否符合规则、fileNameWithOutExt string, subExt string, subLang types.MyLanguage, extraSubPreName string
Click to show internal directories.
Click to hide internal directories.