Update download.js

This commit is contained in:
Luca Jäntsch 2019-03-21 19:51:03 +01:00
parent 54cb464d0f
commit b5b992e568

View File

@ -97,7 +97,7 @@ libs.yt_dl = (os,cb)=>{
var url = ""; var url = "";
switch (os) { switch (os) {
case "win32": case "win32":
url = 'https://yt-dl.org/downloads/2017.08.13/youtube-dl.exe'; url = 'https://yt-dl.org/downloads/latest/youtube-dl.exe';
libs.download(url,"youtube-dl",function(data,file){ libs.download(url,"youtube-dl",function(data,file){
fs.renameSync(file,global.dir+'/lib/youtube-dl.exe'); fs.renameSync(file,global.dir+'/lib/youtube-dl.exe');
cb(); cb();