feat: update

This commit is contained in:
yanghao05
2025-04-22 14:56:27 +08:00
parent 202e94c020
commit 01a1516e31
2 changed files with 61 additions and 0 deletions

View File

@@ -87,6 +87,13 @@ 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,