Documentation ¶
Index ¶
Constants ¶
View Source
const ( SubSiteChineseSubFinder = "csf" SubSiteZiMuKu = "zimuku" SubSiteSubHd = "subhd" SubSiteShooter = "shooter" SubSiteXunLei = "xunlei" SubSiteAssrt = "assrt" SubSiteA4K = "a4k" )
View Source
const ( VideoExtMp4 = ".mp4" VideoExtMkv = ".mkv" VideoExtRmvb = ".rmvb" VideoExtIso = ".iso" VideoExtM2ts = ".m2ts" )
View Source
const ( TimeFormatPoint2 = "15:04:05.00" TimeFormatPoint3 = "15:04:05,000" TimeFormatPoint4 = "15:04:05,0000" )
View Source
const ( SubTypeASS = "ass" SubTypeSSA = "ssa" SubTypeSRT = "srt" SubExtASS = ".ass" SubExtSSA = ".ssa" SubExtSRT = ".srt" )
View Source
const ( SubXunLeiRootUrlDef = "http://sub.xmp.sandai.net:8000/subxl/%s.json" SubShooterRootUrlDef = "https://www.shooter.cn/api/subapi.php" SubZiMuKuRootUrlDef = "https://zimuku.org" SubZiMuKuSearchFormatUrl = "/search?q=%s" SubSubHDRootUrlDef = "https://subhd.tv" SubSubHDSearchUrl = "/search/%s" SubAssrtRootUrlDef = "https://api.assrt.net/v1" SubA4kRootUrlDef = "https://www.a4k.net" SubA4kSearchUrl = "/search?term=" )
View Source
const BrowserTimeOut = 6 * 60 * time.Second // Browser 超时时间
View Source
const DownloadSubsPerSite = 1 // 默认,每个网站下载一个字幕,允许额外传参调整
View Source
const EmbyApiGetItemsLimitMax = 1000000
View Source
const EmbyApiGetItemsLimitMin = 50
View Source
const (
FileBDMV = "id.bdmv" // 蓝光文件,CERTIFICATE 这个中的
)
View Source
const HTMLTimeOut = 1 * 60 * time.Second // HttpClient 超时时间
View Source
const Ignore = ".ignore"
View Source
const (
NotifyStringTellUserWait = "If you have a lot of videos, it may take a lot of time, just wait..."
)
View Source
const OnceLogPrefix = "Once-"
View Source
const OneMovieProcessTimeOut = 5 * 60 * time.Second // 一部电影,最多的处理时间
View Source
const OneSeriesProcessTimeOut = 30 * 60 // 一部连续剧,最多的处理时间
View Source
const QueueName = "Queue"
View Source
const ScanPlayedSubTimeOut = 60 * 60 // 扫描已经播放的字幕进行缓存的时间
View Source
const StaticFileName00 = "c31ViaG5Q.txt"
Variables ¶
View Source
var ( NoMetadataFile = errors.New("no metadata file, movie.xml or *.nfo") CanNotFindIMDBID = errors.New("can not find IMDB Id") CanNotFindEpAiredTime = errors.New("can not find Ep Aired Time") XunLeiCIdIsEmpty = errors.New("cid is empty") VideoFileIsTooSmall = errors.New("video file is too small") ShooterFileHashIsEmpty = errors.New("filehash is empty") ZiMuKuSearchKeyWordStep0DetailPageUrlNotFound = errors.New("zimuku search keyword step0 not found, detail page url") ZiMuKuDownloadUrlStep2NotFound = errors.New("zimuku download url step2 not found") ZiMuKuDownloadUrlStep3NotFound = errors.New("zimuku download url step3 not found") ZiMuKuDownloadUrlDownFileFailed = errors.New("zimuku download url DownFile failed") SubHDStep0SubCountElementNotFound = errors.New("subhd step0 sub count element not found") SubHDStep0ImgParentLessThan1 = errors.New("subhd step0 Img Parent less than 1") SubHDStep0HrefIsNull = errors.New("subhd step0 href is Null") SubHDStep2ExCannotFindDownloadBtn = errors.New("subhd step2ex can not find download btn") SubHDDownloadUrlDownFileFailed = errors.New("subhd download url DownFile failed") )
View Source
var ( AllSiteDownloadSubNotFound = errors.New("all site download sub not found") SkipCreateInDB = fmt.Errorf("skip create in db") )
View Source
var SubhdCode = ""
SubHD Code 的全局变量,偷懒先实现
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.