Updated TODO.txt
This commit is contained in:
parent
cbc8dd8b8a
commit
09d1e645a1
1
TODO.txt
1
TODO.txt
@ -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
|
||||||
|
15
mandy.lua
15
mandy.lua
@ -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
|
||||||
|
dirD = dirD
|
||||||
|
mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..dirD..""
|
||||||
os.execute(mp3)
|
os.execute(mp3)
|
||||||
io.popen("vlc "..dirD..".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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user