Browse Source

减低 upload sub 间隔

Signed-off-by: allan716 <[email protected]>
allan716 3 years ago
parent
commit
c8de6ee776
1 changed files with 12 additions and 6 deletions
  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"
 		}