mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-23 02:23:19 +03:00
Fixed issue where new youtube-dl binary would download on launch even when no update existed
This commit is contained in:
@@ -93,8 +93,8 @@ exports.checkForYoutubeDLUpdate = async () => {
|
|||||||
updateDetailsJSON(CONSTS.OUTDATED_YOUTUBEDL_VERSION, selected_fork, output_file_path);
|
updateDetailsJSON(CONSTS.OUTDATED_YOUTUBEDL_VERSION, selected_fork, output_file_path);
|
||||||
}
|
}
|
||||||
const current_app_details = JSON.parse(fs.readFileSync(CONSTS.DETAILS_BIN_PATH));
|
const current_app_details = JSON.parse(fs.readFileSync(CONSTS.DETAILS_BIN_PATH));
|
||||||
const current_version = current_app_details['version'];
|
const current_version = current_app_details[selected_fork]['version'];
|
||||||
const current_fork = current_app_details['downloader'];
|
const current_fork = current_app_details[selected_fork]['downloader'];
|
||||||
|
|
||||||
const latest_version = await exports.getLatestUpdateVersion(selected_fork);
|
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
|
// if the binary does not exist, or default_downloader doesn't match existing fork, or if the fork has been updated, redownload
|
||||||
|
|||||||
Reference in New Issue
Block a user