refactor: thread safe tasks

This commit is contained in:
Simon Ding
2025-04-08 14:01:32 +08:00
parent 9014f846be
commit 2bc71b0c66
5 changed files with 36 additions and 28 deletions

View File

@@ -253,7 +253,7 @@ func (c *Engine) findEpisodeFilesPreMoving(historyId int) error {
episodeIds := c.GetEpisodeIds(his)
task := c.tasks[historyId]
task, _ := c.tasks.Load(historyId)
ff, err := c.db.GetAcceptedVideoFormats()
if err != nil {