Added TODO.txt

This commit is contained in:
silvernode 2013-07-23 22:56:10 -05:00
parent fbdb4bf64a
commit cbc8dd8b8a
3 changed files with 26 additions and 10 deletions

14
TODO.txt Normal file
View File

@ -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

View File

@ -12,5 +12,7 @@ function main()
end
--initialize function "main"
main()

View File

@ -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