Skip to content

Commit

Permalink
Merge pull request #180 from pabloromeo/experimental
Browse files Browse the repository at this point in the history
Fix for EAE_ROOT not always sent by plex
  • Loading branch information
pabloromeo authored Oct 13, 2022
2 parents 262c732 + 6954424 commit 46a6527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/app/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 46a6527

Please sign in to comment.