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 = javaxCodeDir("youtube-dl/youtube-dl.version"); if (!eq(newVersion, loadTextFile(versionFile))) { print("Found new youtube-dl version: " + newVersion); saveTextFile(versionFile, newVersion); ret forceInstallYouTubeDL(); } } ret file; }