Skip to content

Commit

Permalink
删除tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyi510 committed Jan 7, 2022
1 parent c35b74c commit 5ea456b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
18 changes: 2 additions & 16 deletions conf/demo.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,5 @@ qbit_server:
# qBit 账号密码
username: ""
password: ""
# 信任的tracker 不处理限制上传分享率
trust_trackers: "tracker.hdtime.org/announce.php
hdfans.org/announce.php
tracker.torrentleech.org
announce.leaguehd.com/announce.php
ptsbao.club/announce.php
hdatmos.club/announce.php
tracker.m-team.cc
daydream.dmhy.best/announc
announce.haidan.video/announce.php
tp.m-team.cc/announce.php
tp.msg.vg/announce.php
pt.btschool.club/announce.php
www.hdarea.co/announce.php
tracker.avgv.cc/announce.php
"
# 信任的tracker 不处理限制上传分享率 一行一个
trust_trackers: ""
8 changes: 4 additions & 4 deletions internal/handler/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ func (this *handleCron) Run() {
}

// 间隔扫描时间
this.checkScanTime()
// 检查登录
this.checkScanTime(len(hashes))
// 检查登录状态是否合法
this.checkLogin()

log.Println("======================================\r\n\r\n")
Expand All @@ -158,7 +158,7 @@ func (this *handleCron) Run() {
}

//checkScanTime 检查扫描时间间隔
func (this *handleCron) checkScanTime() {
func (this *handleCron) checkScanTime(setLimitCount int) {
limitTime := this.conf.GetDuration("qbit_scan_time")
if limitTime == 0 {
this.conf.Set("qbit_scan_time", "10")
Expand All @@ -169,7 +169,7 @@ func (this *handleCron) checkScanTime() {
limitTime = 10
}

log.Println("扫描完成")
log.Println("扫描完成 \r\n\t\t共扫描到提交限制分享种子数量:" + strconv.Itoa(setLimitCount) + "个")
log.Println("开始等待下一轮检查 等待", int(limitTime), "s后执行")
time.Sleep(time.Second * limitTime)
}
Expand Down

0 comments on commit 5ea456b

Please sign in to comment.