fix: optimize subtitle extraction with mkvextract batch mode, fix copyToWorkDir skip logic, target original library dir
Build / Lint & Test (push) Successful in 13s

This commit is contained in:
PickleRick committed 2026-09-19 15:17:38 +02:00
1 parent 27fee1ee95
commit 1cdd771045
3 files changed
+133 -94

No files matched your search

@@ -58,9 +58,9 @@ const plugin = async (args) => {
let ext = '.dts';
if (itaCodec.includes('truehd')) ext = '.thd';
const sourceDir = path.dirname(inputFile);
const baseName = path.basename(inputFile, path.extname(inputFile));
const outFile = path.join(sourceDir, `${baseName}.ita${ext}`);
const targetDir = variables.originalLibraryDir || path.dirname(inputFile);
const baseName = path.basename(variables.originalLibraryFile || inputFile, path.extname(variables.originalLibraryFile || inputFile));
const outFile = path.join(targetDir, `${baseName}.ita${ext}`);
jobLog(`[backupSourceAudio] Backing up ITA ${itaCodec} -> ${outFile}\n`);