浏览代码

减低 upload sub 间隔

Signed-off-by: allan716 <[email protected]>
allan716 3 年之前
父节点
当前提交
c8de6ee776
共有 1 个文件被更改,包括 12 次插入6 次删除
  1. 12 6
      internal/logic/cron_helper/cron_helper.go

+ 12 - 6
internal/logic/cron_helper/cron_helper.go

@@ -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()
 		}
 	}
 
@@ -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"
 		}