From a7a9ff7cebec7d3606cc84d050a29ac145ff0883 Mon Sep 17 00:00:00 2001 From: zak-45 <121941293+zak-45@users.noreply.github.com> Date: Sun, 21 May 2023 17:15:12 +0200 Subject: [PATCH] Add files via upload --- Spleeter.js | 10 ++++++++++ spleeter.cmd | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Spleeter.js b/Spleeter.js index 0699cfa..35402fb 100644 --- a/Spleeter.js +++ b/Spleeter.js @@ -271,6 +271,16 @@ function runSpleeter (sequence, targetFile, model) script.log('command to run : '+ spleeterCMDName + exeOPT); // we execute the Spleeter command in blocking mode to wait end of execution; var launchresult = root.modules.os.launchProcess(spleeterCMDName + exeOPT, true); + + } else { + + splOutputOptions = "ffprobeOnly"; + + var exeOPT = " " + splOutputOptions + " -o " + '"' + splOutputFolder + '" -p ' + SPLstems+' "' + targetFile + '" ' + verbose; + script.log('command to run : '+ spleeterCMDName + exeOPT); + // we execute the Spleeter command file for only ffprobe + var launchresult = root.modules.os.launchProcess(spleeterCMDName + exeOPT, true); + } // set sequence to artist name /audio to title diff --git a/spleeter.cmd b/spleeter.cmd index e22ecdb..a47cdf8 100644 --- a/spleeter.cmd +++ b/spleeter.cmd @@ -10,4 +10,4 @@ cd %WINPYDIRBASE% ffprobe -show_format -print_format json %6 > %TMP%/spleeterfileinfo.json -spleeter.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file +if NOT %1 == "ffprobeOnly" spleeter.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file