Skip to content

Commit

Permalink
Change to use GetLocalPath
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencecurtis authored Nov 7, 2024
1 parent 4f9975c commit 031cb3e
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,8 @@ function Script(RemoveHDRTenPlus) {
if (!ffmpeg) return -1;

let working = Flow.WorkingFile;
let original = Variables.file.Orig.FullName;

if (Flow.IsRemote) {
Flow.AdditionalInfoRecorder("DoVi", "Downloading original video...", 1);
let output = Flow.TempPath + '/' + Flow.NewGuid() + Variables.file.Extension;
Flow.CopyFile(original, output);
original = output
}
var result = Flow.FileService.GetLocalPath(Variables.file.Orig.FullName);
let original = result.Value;

let process = Flow.Execute({
command: ffmpeg,
Expand Down Expand Up @@ -92,10 +86,6 @@ function Script(RemoveHDRTenPlus) {
return -1;
}

if (Flow.IsRemote) {
System.IO.File.Delete(original);
}

Flow.PartPercentageUpdate(0);
Flow.AdditionalInfoRecorder("DoVi", "Extracting RPU", 1);

Expand Down

0 comments on commit 031cb3e

Please sign in to comment.