static File installOrUpdateYouTubeDL() { File file = youTubeDLExecutable(); if (!file.exists()) ret forceInstallYouTubeDL(); pcall { /*if (fileOlderThanNDays(file, 7)) ret forceInstallYouTubeDL();*/ S newVersion = loadPage("https://rg3.github.io/youtube-dl/update/LATEST_VERSION"); File versionFile = javaxDataDir(#1006747, "youtube-dl.version"); if (!eq(newVersion, loadTextFile(versionFile))) { print("Found new youtube-dl version: " + newVersion); saveTextFile(versionFile, newVersion)); ret forceInstallYouTubeDL(); } } ret file; }