From 1456c2597856f63eb135a1a42b58d472233484de Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Thu, 30 Nov 2023 00:31:26 -0500 Subject: [PATCH] Fixed issue where new youtube-dl binary would download on launch even when no update existed --- backend/youtube-dl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/youtube-dl.js b/backend/youtube-dl.js index e48c292..658f9f2 100644 --- a/backend/youtube-dl.js +++ b/backend/youtube-dl.js @@ -93,8 +93,8 @@ exports.checkForYoutubeDLUpdate = async () => { updateDetailsJSON(CONSTS.OUTDATED_YOUTUBEDL_VERSION, selected_fork, output_file_path); } const current_app_details = JSON.parse(fs.readFileSync(CONSTS.DETAILS_BIN_PATH)); - const current_version = current_app_details['version']; - const current_fork = current_app_details['downloader']; + const current_version = current_app_details[selected_fork]['version']; + const current_fork = current_app_details[selected_fork]['downloader']; const latest_version = await exports.getLatestUpdateVersion(selected_fork); // if the binary does not exist, or default_downloader doesn't match existing fork, or if the fork has been updated, redownload