Browse Source

新增,提示用户等待的描述

Signed-off-by: allan716 <[email protected]>
allan716 4 years ago
parent
commit
2fde430141
2 changed files with 11 additions and 3 deletions
  1. 4 2
      cmd/chinesesubfinder/main.go
  2. 7 1
      internal/common/constvalue.go

+ 4 - 2
cmd/chinesesubfinder/main.go

@@ -2,6 +2,7 @@ package main
 
 import (
 	"github.com/allanpk716/ChineseSubFinder/internal"
+	commonValue "github.com/allanpk716/ChineseSubFinder/internal/common"
 	"github.com/allanpk716/ChineseSubFinder/internal/logic/sub_timeline_fixer"
 	config2 "github.com/allanpk716/ChineseSubFinder/internal/pkg/config"
 	"github.com/allanpk716/ChineseSubFinder/internal/pkg/hot_fix"
@@ -71,7 +72,8 @@ func main() {
 
 	// ------ Hot Fix Start ------
 	// 开始修复
-	log.Infoln("HotFix Start...")
+	log.Infoln("HotFix Start, wait ...")
+	log.Infoln(commonValue.NotifyStringTellUserWait)
 	err := hot_fix.HotFixProcess(types.HotFixParam{
 		MovieRootDir:  config.MovieFolder,
 		SeriesRootDir: config.SeriesFolder,
@@ -91,7 +93,7 @@ func main() {
 		然后需要在数据库中记录本次的转换结果
 	*/
 	log.Infoln("Change Sub Name Format Start...")
-
+	log.Infoln(commonValue.NotifyStringTellUserWait)
 	renameResults, err := sub_formatter.SubFormatChangerProcess(config.MovieFolder, config.SeriesFolder, common.FormatterName(config.SubNameFormatter))
 	// 出错的文件有哪一些
 	for s, i := range renameResults.ErrFiles {

+ 7 - 1
internal/common/constvalue.go

@@ -1,6 +1,8 @@
 package common
 
-import "time"
+import (
+	"time"
+)
 
 const HTMLTimeOut = 2 * 60 * time.Second             // HttpClient 超时时间
 const OneVideoProcessTimeOut = 20 * 60 * time.Second // 一部电影、一个连续剧,最多的处理时间
@@ -38,3 +40,7 @@ const (
 )
 
 const Ignore = ".ignore"
+
+const (
+	NotifyStringTellUserWait = "If you have a lot of videos, it may take a lot of time, just wait..."
+)