Browse Source

修复重复计算特征码的问题

Signed-off-by: allan716 <[email protected]>
allan716 3 years ago
parent
commit
83b571bb73
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/types/task_queue/task_queue.go

+ 1 - 1
internal/types/task_queue/task_queue.go

@@ -54,7 +54,7 @@ func NewOneJob(videoType common.VideoType, videoFPath string, taskPriority int,
 	ob.VideoName = filepath.Base(videoFPath)
 	// -------------------------------------------------
 	// 使用本程序的 hash 的算法,得到视频的唯一 ID
-	ob.Feature, _ = sub_file_hash.Calculate(videoFPath)
+	ob.Feature = sha256String
 	// -------------------------------------------------
 	ob.JobStatus = Waiting
 	nTime := time.Now()