From 69544246c00cb7058694d8bd9f3102bb3fbf160a Mon Sep 17 00:00:00 2001 From: Pablo Romeo Date: Thu, 13 Oct 2022 13:06:24 -0300 Subject: [PATCH] Fix for EAE_ROOT not always sent by plex --- worker/app/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/app/worker.js b/worker/app/worker.js index 6c7735f..7f4f75c 100644 --- a/worker/app/worker.js +++ b/worker/app/worker.js @@ -103,7 +103,7 @@ socket.on('worker.task.request', taskRequest => { } } - if ((EAE_SUPPORT == "1" || EAE_SUPPORT == "true") && EAE_EXECUTABLE != "") { + if ((EAE_SUPPORT == "1" || EAE_SUPPORT == "true") && EAE_EXECUTABLE != "" && processedEnvironmentVariables.EAE_ROOT !== undefined) { if (!fs.existsSync(processedEnvironmentVariables.EAE_ROOT)){ console.log(`EAE Support - Creating EAE_ROOT destination => ${processedEnvironmentVariables.EAE_ROOT}`) fs.mkdirSync(processedEnvironmentVariables.EAE_ROOT, { recursive: true });