Updated TODO.txt

This commit is contained in:
silvernode 2013-07-24 07:20:05 -05:00
parent cbc8dd8b8a
commit 09d1e645a1
2 changed files with 14 additions and 4 deletions

View File

@ -11,4 +11,5 @@ key: + = to add, - = to remove, x = completed, # = comment
+Replace spaces in file name with dashes/underscores +Replace spaces in file name with dashes/underscores
+Make cancel button exit in url dialog +Make cancel button exit in url dialog
+Create dialog asking to play finished file or not +Create dialog asking to play finished file or not
+Display current action in progressbar instead of youtube link itself
#possibly more later #possibly more later

View File

@ -33,7 +33,8 @@ end
function set_dir() function set_dir()
getPath = iup.filedlg{dialogtype = "SAVE", title="Save file...", getPath = iup.filedlg{dialogtype = "SAVE", title="Save file...",
filter="*.mp3", filterinfo="mp3", filter="*.mp3", filterinfo="mp3",
directory="~/Music"} directory="Music/",
file="*.mp3"}
getPath:popup(iup.ANYWHERE, iup.ANYWHERE) getPath:popup(iup.ANYWHERE, iup.ANYWHERE)
@ -78,9 +79,17 @@ end
function ffmpeg(tmpPath, dirD) function ffmpeg(tmpPath, dirD)
mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..dirD..".mp3" if dirD == dirD..".mp3" then
os.execute(mp3) dirD = dirD
io.popen("vlc "..dirD..".mp3") mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..dirD..""
os.execute(mp3)
io.popen("vlc "..dirD)
elseif dirD ~= dirD..".mp3" then
dirD = dirD..".mp3"
mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y"..dirD..""
os.execute(mp3)
io.popen("vlc "..dirD)
end
end end
--put everything into a table to use local functions globally --put everything into a table to use local functions globally