fix: pass updateWorker to all CLI constructors; add copyToWorkDir plugin
Build / Lint & Test (push) Successful in 13s
Build / Lint & Test (push) Successful in 13s
This commit is contained in:
1 parent
3b7f660058
commit
c604acfe69
6 files changed
+131
-10
No files matched your search
@@ -4,8 +4,10 @@
|
||||
* Used only for local testing — on real Tdarr this file comes from the server.
|
||||
*
|
||||
* Matches the real Tdarr CLI constructor signature:
|
||||
* new CLI({ cli, spawnArgs, WorkDir, jobLog, inputFileObj })
|
||||
* inputFileObj is accepted but unused here (only used by real Tdarr for progress tracking).
|
||||
* new CLI({ cli, spawnArgs, WorkDir, jobLog, inputFileObj, updateWorker })
|
||||
* - inputFileObj : used by real Tdarr for ffprobe-based progress tracking
|
||||
* - updateWorker : callback used by real Tdarr to push progress to the UI
|
||||
* Both are accepted but unused here (local mock just logs to stdout).
|
||||
*/
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
|
||||
Reference in new issue
Block a user