Skip to content

Commit

Permalink
减低 upload sub 间隔
Browse files Browse the repository at this point in the history
Signed-off-by: allan716 <525223688@qq.com>
  • Loading branch information
allanpk716 committed Jun 10, 2022
1 parent 941f465 commit c8de6ee
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions internal/logic/cron_helper/cron_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,17 @@ func (ch *CronHelper) Start(runImmediately bool) {
// 测试部分定时器代码,提前运行
if ch.Settings.SpeedDevMode == true {

ch.scanPlayedVideoSub()

ch.scanVideoProcessAdd2DownloadQueue()

ch.uploadVideoSub()
//pj := pre_job.NewPreJob(ch.Settings, ch.log)
//err = pj.HotFix().Wait()
//if err != nil {
// ch.log.Errorln(err)
//}
//
//ch.scanPlayedVideoSub()
//
//ch.scanVideoProcessAdd2DownloadQueue()

//ch.uploadVideoSub()
}
}

Expand Down Expand Up @@ -137,7 +143,7 @@ func (ch *CronHelper) Start(runImmediately bool) {
// 字幕的上传逻辑
if ch.Settings.ExperimentalFunction.ShareSubSettings.ShareSubEnabled == true {

intervalNowTask := "@every 1m"
intervalNowTask := "@every 10s"
if ch.Settings.SpeedDevMode == true {
intervalNowTask = "@every 1s"
}
Expand Down

0 comments on commit c8de6ee

Please sign in to comment.