From cbc8dd8b8afbd5f0b0fb4de18254028936e08a9e Mon Sep 17 00:00:00 2001 From: silvernode Date: Tue, 23 Jul 2013 22:56:10 -0500 Subject: [PATCH] Added TODO.txt --- TODO.txt | 14 ++++++++++++++ main.lua | 2 ++ mandy.lua | 20 ++++++++++---------- 3 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 TODO.txt diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..0b7535c --- /dev/null +++ b/TODO.txt @@ -0,0 +1,14 @@ +TODO: + +key: + = to add, - = to remove, x = completed, # = comment + ++Append extensions to file name in save dialog ++Add option for multiple audio formats ++Dynamic libraries ++Create custom url entry dialog ++Url validation ++Percentage in progress bar ++Replace spaces in file name with dashes/underscores ++Make cancel button exit in url dialog ++Create dialog asking to play finished file or not +#possibly more later diff --git a/main.lua b/main.lua index 4de10d3..a0de8f8 100644 --- a/main.lua +++ b/main.lua @@ -12,5 +12,7 @@ function main() end + +--initialize function "main" main() diff --git a/mandy.lua b/mandy.lua index db27215..e5a9fad 100644 --- a/mandy.lua +++ b/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