constvalue.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package common
  2. import (
  3. "time"
  4. )
  5. const HTMLTimeOut = 2 * 60 * time.Second // HttpClient 超时时间
  6. const OneVideoProcessTimeOut = 5 * 60 * time.Second // 一部电影、一个连续剧,最多的处理时间
  7. const DownloadSubsPerSite = 1 // 默认,每个网站下载一个字幕,允许额外传参调整
  8. const EmbyApiGetItemsLimitMin = 50
  9. const EmbyApiGetItemsLimitMax = 50000
  10. const (
  11. DownloadSubDuring3Months = "2160h"
  12. DownloadSubDuring7Days = "168h"
  13. )
  14. const (
  15. SubSiteZiMuKu = "zimuku"
  16. SubSiteSubHd = "subhd"
  17. SubSiteShooter = "shooter"
  18. SubSiteXunLei = "xunlei"
  19. )
  20. const (
  21. VideoExtMp4 = ".mp4"
  22. VideoExtMkv = ".mkv"
  23. VideoExtRmvb = ".rmvb"
  24. VideoExtIso = ".iso"
  25. )
  26. const (
  27. TimeFormatPoint2 = "15:04:05.00"
  28. TimeFormatPoint3 = "15:04:05,000"
  29. TimeFormatPoint4 = "15:04:05,0000"
  30. )
  31. const Ignore = ".ignore"
  32. const (
  33. NotifyStringTellUserWait = "If you have a lot of videos, it may take a lot of time, just wait..."
  34. )
  35. const QueueName = "Queue"
  36. const StaticFileName00 = "c31ViaG5Q.txt"