reverted back to master
This commit is contained in:
parent
c374891fa8
commit
c19fae2966
11
mandy.lua
11
mandy.lua
@ -7,14 +7,6 @@ require("iuplua")
|
|||||||
require("iupluacontrols")
|
require("iupluacontrols")
|
||||||
require('progress')
|
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
|
--Main url entry box
|
||||||
@ -92,8 +84,7 @@ end
|
|||||||
function ytDl(x)
|
function ytDl(x)
|
||||||
local tmpName = math.random(0,999999999999)
|
local tmpName = math.random(0,999999999999)
|
||||||
local tmpNameTwo = math.random(0,999999999999)
|
local tmpNameTwo = math.random(0,999999999999)
|
||||||
|
local tmpPath = x.." --output=/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv"
|
||||||
local tmpPath = x.." --extract-audio --audio-format=mp3 --output="..tmpName.."-"..tmpNameTwo..".flv"
|
|
||||||
local tmpPath2 = "/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv"
|
local tmpPath2 = "/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv"
|
||||||
|
|
||||||
popin.ytdl(tmpPath)
|
popin.ytdl(tmpPath)
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
-- keep that in mind as well
|
-- keep that in mind as well
|
||||||
require ('iuplua')
|
require ('iuplua')
|
||||||
|
|
||||||
|
|
||||||
local cancelflag --set variable
|
local cancelflag --set variable
|
||||||
local downloadProgress --set variable
|
local downloadProgress --set variable
|
||||||
|
|
||||||
@ -91,9 +90,6 @@ round up and only update if number has changed
|
|||||||
end
|
end
|
||||||
|
|
||||||
until not c-- creating a loop until c is not true
|
until not c-- creating a loop until c is not true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pipe:close() -- closing the ipopen
|
pipe:close() -- closing the ipopen
|
||||||
iup.Close()
|
iup.Close()
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user