Log which extraction backend was used (7zjbinding/zip4j/legacy)
Some checks are pending
Build and Release / build (push) Waiting to run

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe 2026-03-03 02:12:48 +01:00
parent de369f3bcd
commit b712282f62
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "real-debrid-downloader", "name": "real-debrid-downloader",
"version": "1.5.43", "version": "1.5.44",
"description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)", "description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)",
"main": "build/main/main/main.js", "main": "build/main/main/main.js",
"author": "Sucukdeluxe", "author": "Sucukdeluxe",

View File

@ -1177,6 +1177,7 @@ async function runExternalExtract(
); );
if (jvmResult.ok) { if (jvmResult.ok) {
logger.info(`Entpackt via ${jvmResult.backend || "jvm"}: ${path.basename(archivePath)}`);
return jvmResult.usedPassword; return jvmResult.usedPassword;
} }
if (jvmResult.aborted) { if (jvmResult.aborted) {
@ -1206,8 +1207,11 @@ async function runExternalExtract(
timeoutMs, timeoutMs,
hybridMode hybridMode
); );
const extractorName = path.basename(command).replace(/\.exe$/i, "");
if (jvmFailureReason) { if (jvmFailureReason) {
logger.info(`Legacy-Extractor übernahm nach JVM-Fehler: ${path.basename(archivePath)}`); logger.info(`Entpackt via legacy/${extractorName} (nach JVM-Fehler): ${path.basename(archivePath)}`);
} else {
logger.info(`Entpackt via legacy/${extractorName}: ${path.basename(archivePath)}`);
} }
return password; return password;
} finally { } finally {