constvalue.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package common
  2. import (
  3. "time"
  4. )
  5. const HTMLTimeOut = 2 * 60 * time.Second // HttpClient 超时时间
  6. const OneMovieProcessTimeOut = 5 * 60 // 一部电影,最多的处理时间
  7. const OneSeriesProcessTimeOut = 30 * 60 // 一部连续剧,最多的处理时间
  8. const ScanPlayedSubTimeOut = 30 * 60 // 扫描已经播放的字幕进行缓存的时间
  9. const DownloadSubsPerSite = 1 // 默认,每个网站下载一个字幕,允许额外传参调整
  10. const EmbyApiGetItemsLimitMin = 50
  11. const EmbyApiGetItemsLimitMax = 50000
  12. const (
  13. DownloadSubDuring3Months = "2160h"
  14. DownloadSubDuring7Days = "168h"
  15. )
  16. const (
  17. SubSiteZiMuKu = "zimuku"
  18. SubSiteSubHd = "subhd"
  19. SubSiteShooter = "shooter"
  20. SubSiteXunLei = "xunlei"
  21. )
  22. const (
  23. VideoExtMp4 = ".mp4"
  24. VideoExtMkv = ".mkv"
  25. VideoExtRmvb = ".rmvb"
  26. VideoExtIso = ".iso"
  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"