normal

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

func NewFormatter

func NewFormatter(log *logrus.Logger) *Formatter

func (Formatter) GenerateMixSubName

func (f Formatter) GenerateMixSubName(videoFileName, subExt string, subLang language2.MyLanguage, extraSubPreName string) (string, string, string)

GenerateMixSubName 通过视频和字幕信息,生成当前实现接口的字幕命名格式。extraSubPreName 一般是填写字幕网站,不填写则留空 - 新名称、新名称带有 default 标记,新名称带有 forced 标记

func (Formatter) GenerateMixSubNameBase

func (f Formatter) GenerateMixSubNameBase(fileNameWithOutExt, subExt string, subLang language2.MyLanguage, extraSubPreName string) (string, string, string)

func (Formatter) GetFormatterFormatterName

func (f Formatter) GetFormatterFormatterName() int

func (Formatter) GetFormatterName

func (f Formatter) GetFormatterName() string

GetFormatterName 当前的 Formatter 是那个

func (Formatter) IsMatchThisFormat

func (f Formatter) IsMatchThisFormat(subName string) (bool, string, string, language2.MyLanguage, string)

IsMatchThisFormat 是否满足当前实现接口的字幕命名格式 - 是否符合规则、fileNameWithOutExt string, subExt string, subLang types.MyLanguage, extraSubPreName string

Jump to

Keyboard shortcuts

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