diff --git a/mandy.lua b/mandy.lua index e7fc319..b200173 100644 --- a/mandy.lua +++ b/mandy.lua @@ -7,14 +7,6 @@ require("iuplua") require("iupluacontrols") require('progress') -local function file_check(name) - local f=io.open(name, "r") - if f~=nil then io.close(f) - return true - else - return false - end -end --Main url entry box @@ -92,8 +84,7 @@ end function ytDl(x) local tmpName = math.random(0,999999999999) local tmpNameTwo = math.random(0,999999999999) - - local tmpPath = x.." --extract-audio --audio-format=mp3 --output="..tmpName.."-"..tmpNameTwo..".flv" + local tmpPath = x.." --output=/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv" local tmpPath2 = "/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv" popin.ytdl(tmpPath) diff --git a/progress.lua b/progress.lua index 1e59ef6..321f358 100644 --- a/progress.lua +++ b/progress.lua @@ -5,7 +5,6 @@ -- keep that in mind as well require ('iuplua') - local cancelflag --set variable local downloadProgress --set variable @@ -91,9 +90,6 @@ round up and only update if number has changed end until not c-- creating a loop until c is not true - - - pipe:close() -- closing the ipopen iup.Close() end