srt

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 9 Imported by: 0

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 NewParser

func NewParser(log *logrus.Logger) *Parser

func (Parser) DetermineFileTypeFromBytes

func (p Parser) DetermineFileTypeFromBytes(inBytes []byte, nowExt string) (bool, *subparser.FileInfo, error)

DetermineFileTypeFromBytes 确定字幕文件的类型,是双语字幕或者某一种语言等等信息

func (Parser) DetermineFileTypeFromFile

func (p Parser) DetermineFileTypeFromFile(filePath string) (bool, *subparser.FileInfo, error)

DetermineFileTypeFromFile 确定字幕文件的类型,是双语字幕或者某一种语言等等信息 当 error 是 common.DetermineFileTypeFromFileExtNotFitSRT 需要额外的处理逻辑,比如不用报错,而是跳过后续的逻辑

func (Parser) GetParserName

func (p Parser) GetParserName() string

Jump to

Keyboard shortcuts

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