Fixed issue where new youtube-dl binary would download on launch even when no update existed

pull/1032/head
Tzahi12345 1 year ago
parent 67c38039b0
commit 1456c25978

@ -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

Loading…
Cancel
Save