123456789101112131415161718192021222324252627 |
- package common
- const FormatterNameString_Normal = "normal formatter"
- const FormatterNameString_Emby = "emby formatter"
- const FormatterNameString_SampleAsVideoName = "sample as video name formatter"
- const NoMatchFormatter = "No Match formatter"
- type FormatterName int
- const (
- Emby FormatterName = iota // Emby 格式 xxx.chinese.(简,shooter).ass
- Normal // 常规 xxx.zh.ass
- SameAsVideoName // 与视频文件名称相同
- )
- func (f FormatterName) String() string {
- switch f {
- case Normal:
- return FormatterNameString_Normal
- case Emby:
- return FormatterNameString_Emby
- case SameAsVideoName:
- return FormatterNameString_SampleAsVideoName
- default:
- return NoMatchFormatter
- }
- }
|