Fixing downloads by replacing the torrent client

This commit is contained in:
tuesday 2024-06-26 17:58:05 +02:00
parent 2aeeeaf15b
commit fea59514bc
2 changed files with 51 additions and 49 deletions

View File

@ -16,7 +16,7 @@ export const startAria2 = () => {
"--allow-overwrite=true",
"--log-level=debug",
"--no-conf",
"--disk-cache=128M"
"--disk-cache=128M",
],
{ stdio: "inherit", windowsHide: true }
);
@ -27,7 +27,9 @@ export const startAria2 = () => {
aria2Process.on("exit", (code, signal) => {
if (code !== 0) {
console.error(`Aria2 process exited with code ${code} and signal ${signal}`);
console.error(
`Aria2 process exited with code ${code} and signal ${signal}`
);
} else {
console.log("Aria2 process exited successfully");
}