Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (Parser) DetermineFileTypeFromBytes ¶
func (p Parser) DetermineFileTypeFromBytes(inBytes []byte, nowExt string) (bool, *subparser.FileInfo, error)
DetermineFileTypeFromBytes 确定字幕文件的类型,是双语字幕或者某一种语言等等信息
func (Parser) DetermineFileTypeFromFile ¶
DetermineFileTypeFromFile 确定字幕文件的类型,是双语字幕或者某一种语言等等信息 当 error 是 common.DetermineFileTypeFromFileExtNotFitSRT 需要额外的处理逻辑,比如不用报错,而是跳过后续的逻辑
func (Parser) GetParserName ¶
Click to show internal directories.
Click to hide internal directories.