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; }
Began life as a copy of #1006747
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016309 |
Snippet name: | installOrUpdateYouTubeDL |
Eternal ID of this version: | #1016309/12 |
Text MD5: | ff17ab06851ef2d80c808ae2fbc28120 |
Author: | stefan |
Category: | javax / video |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-08 22:18:34 |
Source code size: | 612 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 429 / 468 |
Version history: | 11 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |