constvalue.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package common
  2. import (
  3. "time"
  4. )
  5. const HTMLTimeOut = 5 * 60 * time.Second // HttpClient 超时时间
  6. const OneMovieProcessTimeOut = 5 * 60 * time.Second // 一部电影,最多的处理时间
  7. const OneSeriesProcessTimeOut = 30 * 60 // 一部连续剧,最多的处理时间
  8. const ScanPlayedSubTimeOut = 60 * 60 // 扫描已经播放的字幕进行缓存的时间
  9. const DownloadSubsPerSite = 1 // 默认,每个网站下载一个字幕,允许额外传参调整
  10. const EmbyApiGetItemsLimitMin = 50
  11. const EmbyApiGetItemsLimitMax = 1000000
  12. const (
  13. SubSiteZiMuKu = "zimuku"
  14. SubSiteSubHd = "subhd"
  15. SubSiteShooter = "shooter"
  16. SubSiteXunLei = "xunlei"
  17. )
  18. const (
  19. VideoExtMp4 = ".mp4"
  20. VideoExtMkv = ".mkv"
  21. VideoExtRmvb = ".rmvb"
  22. VideoExtIso = ".iso"
  23. VideoExtM2ts = ".m2ts"
  24. )
  25. const (
  26. FileBDMV = "id.bdmv" // 蓝光文件,CERTIFICATE 这个中的
  27. )
  28. const (
  29. TimeFormatPoint2 = "15:04:05.00"
  30. TimeFormatPoint3 = "15:04:05,000"
  31. TimeFormatPoint4 = "15:04:05,0000"
  32. )
  33. const Ignore = ".ignore"
  34. const (
  35. NotifyStringTellUserWait = "If you have a lot of videos, it may take a lot of time, just wait..."
  36. )
  37. const QueueName = "Queue"
  38. const StaticFileName00 = "c31ViaG5Q.txt"
  39. const OnceLogPrefix = "Once-"