Skip to content

Commit 89af4cf

Browse files
committed
Dont go actoss drives for fix
1 parent 042fae8 commit 89af4cf

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

workflows/misc/fix_duration.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@ func FixDurationVX(
3333
return fmt.Errorf("failed to get original file: %w", err)
3434
}
3535

36-
// Get temp folder for processing
37-
tempFolder, err := wfutils.GetWorkflowTempFolder(ctx)
38-
if err != nil {
39-
return fmt.Errorf("failed to get temp folder: %w", err)
40-
}
41-
42-
// Create output path in temp folder
43-
outputPath := tempFolder.Append(originalFile.FilePath.Base()).SetExt(originalFile.FilePath.Ext())
36+
// Create output path in same directory as original with .tmp suffix
37+
outputPath := originalFile.FilePath.Dir().Append(originalFile.FilePath.Base() + ".tmp")
4438

4539
// Run FFmpeg to fix duration
4640
_, err = wfutils.Execute(ctx, activities.Video.FixDurationActivity, activities.FixDurationInput{

0 commit comments

Comments
 (0)