From 6fa4296edfbc7d3201a9722558e171d29f486537 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Tue, 21 Jun 2022 20:24:48 -0400 Subject: [PATCH] Hotfix for #661 startup crash --- backend/youtube-dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/youtube-dl.js b/backend/youtube-dl.js index 37c4c1c..ee3f382 100644 --- a/backend/youtube-dl.js +++ b/backend/youtube-dl.js @@ -90,7 +90,7 @@ exports.updateYoutubeDL = async (latest_update_version) => { exports.verifyBinaryExistsLinux = () => { const details_json = fs.readJSONSync(CONSTS.DETAILS_BIN_PATH); - if (!is_windows && details_json && (details_json['path'].includes('.exe') || !details_json['path'])) { + if (!is_windows && details_json && (!details_json['path'] || details_json['path'].includes('.exe'))) { details_json['path'] = 'node_modules/youtube-dl/bin/youtube-dl'; details_json['exec'] = 'youtube-dl'; details_json['version'] = OUTDATED_VERSION;