From 031cb3e0c3cf4791bf657f0cfa00ca4bb7abd527 Mon Sep 17 00:00:00 2001 From: Lawrence curtis Date: Thu, 7 Nov 2024 19:56:36 +0000 Subject: [PATCH] Change to use GetLocalPath --- ... - Dolby Vision - Fix crop and compatibility.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js b/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js index 94e3006..be83284 100644 --- a/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js +++ b/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js @@ -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, @@ -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);