Fixed ommited spaces issue in file name

This commit is contained in:
silvernode 2013-07-30 06:20:38 -05:00
parent 3be6ebcf68
commit 293fbb3d64

View File

@ -73,7 +73,7 @@ function ytDl(x)
end end
function ffmpeg(tmpPath, dirD) function ffmpeg(tmpPath, dirD)
local subSpaces = string.gsub(dirD, " ", "\\") local subSpaces = string.gsub(dirD, "", "\\")
local mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..subSpaces local mp3 = "ffmpeg -i "..tmpPath.." -acodec libmp3lame -ac 2 -ab 192k -vn -y "..subSpaces
convert_mp3.go(mp3) convert_mp3.go(mp3)
io.popen("notify-send 'The file was saved to' "..subSpaces) io.popen("notify-send 'The file was saved to' "..subSpaces)