common.go 753 B

123456789101112131415161718192021222324252627
  1. package common
  2. const FormatterNameString_Normal = "normal formatter"
  3. const FormatterNameString_Emby = "emby formatter"
  4. const FormatterNameString_SampleAsVideoName = "sample as video name formatter"
  5. const NoMatchFormatter = "No Match formatter"
  6. type FormatterName int
  7. const (
  8. Emby FormatterName = iota // Emby 格式 xxx.chinese.(简,shooter).ass
  9. Normal // 常规 xxx.zh.ass
  10. SameAsVideoName // 与视频文件名称相同
  11. )
  12. func (f FormatterName) String() string {
  13. switch f {
  14. case Normal:
  15. return FormatterNameString_Normal
  16. case Emby:
  17. return FormatterNameString_Emby
  18. case SameAsVideoName:
  19. return FormatterNameString_SampleAsVideoName
  20. default:
  21. return NoMatchFormatter
  22. }
  23. }