feat: update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user