sub_formatter

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubFormatter

func GetSubFormatter(log *logrus.Logger, subNameFormatter int) ifaces.ISubFormatter

GetSubFormatter 选择字幕命名格式化的实例

Types

type RenameResults

type RenameResults struct {
	RenamedFiles map[string]int
	ErrFiles     map[string]int
}

func SubFormatChangerProcess

func SubFormatChangerProcess(log *logrus.Logger, movieRootDirs []string, seriesRootDirs []string, nowDesFormatter common.FormatterName) (RenameResults, error)

SubFormatChangerProcess 执行 SubFormatChanger 逻辑,并且更新数据库缓存

type SubFormatChanger

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

func NewSubFormatChanger

func NewSubFormatChanger(log *logrus.Logger, movieRootDirs []string, seriesRootDirs []string) *SubFormatChanger

func (*SubFormatChanger) AutoDetectThenChangeTo

func (s *SubFormatChanger) AutoDetectThenChangeTo(desFormatter common.FormatterName) (RenameResults, error)

AutoDetectThenChangeTo 自动检测字幕的命名格式,然后转换到目标的 formatter 上

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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