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 `json:"renamed_files"` ErrFiles map[string]int `json:"err_files"` }
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 上
Click to show internal directories.
Click to hide internal directories.