Skip to content

Commit

Permalink
Fixed issue where missing youtube-dl fork info would cause update to …
Browse files Browse the repository at this point in the history
…fail
  • Loading branch information
Tzahi12345 committed Nov 30, 2023
1 parent 85577ac commit eaefcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ exports.checkForYoutubeDLUpdate = async () => {
const output_file_path = getYoutubeDLPath();
// get current version
let current_app_details_exists = fs.existsSync(CONSTS.DETAILS_BIN_PATH);
if (!current_app_details_exists) {
if (!current_app_details_exists[selected_fork]) {
logger.warn(`Failed to get youtube-dl binary details at location '${CONSTS.DETAILS_BIN_PATH}'. Generating file...`);
updateDetailsJSON(CONSTS.OUTDATED_YOUTUBEDL_VERSION, selected_fork, output_file_path);
}
Expand Down

0 comments on commit eaefcc5

Please sign in to comment.