cleaned up pointless gBitrate crap and the extra y param

This commit is contained in:
silvernode 2013-08-05 18:07:14 -05:00
parent bf81bd3369
commit 7a42ec87ad

View File

@ -162,7 +162,7 @@ end
--optional function to implement autoplay --optional function to implement autoplay
function ask_play(x, y) function ask_play(x)
if x == 0 then if x == 0 then
return false return false
elseif x == 1 then elseif x == 1 then
@ -178,11 +178,6 @@ function ffmpeg(tmpPath, dirD)
if gFormat == ".ogg" then gFormat = "libvorbis" end if gFormat == ".ogg" then gFormat = "libvorbis" end
if gFormat == ".flac" then gFormat = "flac" end if gFormat == ".flac" then gFormat = "flac" end
if gBitrate == "320k" then gBitrate = "320k" end
if gBitrate == "192k" then gBitrate = "192k" end
if gBitrate == "160k" then gBitrate = "160k" end
if gBitrate == "128k" then gBitrate = "128k" end
if gBitrate == "96k" then gBitrate = "96k" end
local subSpaces = string.gsub(dirD, " ", "\\ ") local subSpaces = string.gsub(dirD, " ", "\\ ")
local codec = "ffmpeg -i "..tmpPath.." -acodec "..gFormat.." -ac 2 -ab "..gBitrate.." -vn -y "..subSpaces local codec = "ffmpeg -i "..tmpPath.." -acodec "..gFormat.." -ac 2 -ab "..gBitrate.." -vn -y "..subSpaces