common.go 517 B

1234567891011121314151617181920212223
  1. package common
  2. const FormatterNameString_Normal = "normal formatter"
  3. const FormatterNameString_Emby = "emby formatter"
  4. const NoMatchFormatter = "No Match formatter"
  5. type FormatterName int
  6. const (
  7. Emby FormatterName = iota // Emby 格式 xxx.chinese.(简,shooter).ass
  8. Normal // 常规 xxx.zh.ass
  9. )
  10. func (f FormatterName) String() string {
  11. switch f {
  12. case Normal:
  13. return FormatterNameString_Normal
  14. case Emby:
  15. return FormatterNameString_Emby
  16. default:
  17. return NoMatchFormatter
  18. }
  19. }