Added TODO.txt
This commit is contained in:
20
mandy.lua
20
mandy.lua
@@ -11,7 +11,7 @@ require('progress')
|
||||
--Main url entry box
|
||||
function url_entry()
|
||||
|
||||
res, url = iup.GetParam("Zymp3 - Enter URL", nil,
|
||||
res, url = iup.GetParam("Mandy - Enter URL", nil,
|
||||
"Enter Youtube URL: %s\n", "")
|
||||
|
||||
|
||||
@@ -64,23 +64,23 @@ function set_dir()
|
||||
end
|
||||
|
||||
function ytDl(x)
|
||||
local tmpName = math.random(0,999999999999)
|
||||
local tmpNameTwo = math.random(0,999999999999)
|
||||
local tmpPath = x.." --output=/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv"
|
||||
local tmpPath2 = "/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv"
|
||||
local tmpName = math.random(0,999999999999)
|
||||
local tmpNameTwo = math.random(0,999999999999)
|
||||
local tmpPath = x.." --output=/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv"
|
||||
local tmpPath2 = "/tmp/youtube-dl-"..tmpName.."-"..tmpNameTwo..".flv"
|
||||
|
||||
popin.ytdl(tmpPath)
|
||||
popin.ytdl(tmpPath)
|
||||
|
||||
|
||||
return tmpPath2
|
||||
return tmpPath2
|
||||
|
||||
end
|
||||
|
||||
function ffmpeg(tmpPath, dirD)
|
||||
|
||||
mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..dirD..".mp3"
|
||||
os.execute(mp3)
|
||||
io.popen("vlc "..dirD..".mp3")
|
||||
mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..dirD..".mp3"
|
||||
os.execute(mp3)
|
||||
io.popen("vlc "..dirD..".mp3")
|
||||
end
|
||||
|
||||
--put everything into a table to use local functions globally
|
||||
|
||||
Reference in New Issue
Block a user