feat: update

This commit is contained in:
yanghao05
2025-04-22 14:57:34 +08:00
parent 01a1516e31
commit 163a7c11fe
2 changed files with 4 additions and 7 deletions

View File

@@ -87,13 +87,6 @@ func (w *VideoCutWorker) Work(ctx context.Context, job *Job[VideoCut]) error {
return JobCancel(err)
}
// remove original file
if w.job.Add(&RemoveDownloadedVideo{
FilePath: input,
}); err != nil {
log.Errorf("Error removing original file: %v", err)
}
// save to database
return w.job.Add(&VideoStoreShort{
MediaHash: media.Hash,