Refactored youtube-dl updating, added tests

This commit is contained in:
Isaac Abadi
2023-09-02 20:09:40 -04:00
parent 3615b810e4
commit 3fc1110fc1
4 changed files with 101 additions and 93 deletions

View File

@@ -670,7 +670,7 @@ async function getUrlInfos(url) {
async function startYoutubeDL() {
// auto update youtube-dl
youtubedl_api.verifyBinaryExistsLinux();
youtubedl_api.verifyBinaryExists();
const update_available = await youtubedl_api.checkForYoutubeDLUpdate();
if (update_available) await youtubedl_api.updateYoutubeDL(update_available);
}