constvalue.go 1.1 KB

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