cleaned up pointless gBitrate crap and the extra y param
This commit is contained in:
parent
bf81bd3369
commit
7a42ec87ad
@ -162,7 +162,7 @@ end
|
||||
|
||||
--optional function to implement autoplay
|
||||
|
||||
function ask_play(x, y)
|
||||
function ask_play(x)
|
||||
if x == 0 then
|
||||
return false
|
||||
elseif x == 1 then
|
||||
@ -178,11 +178,6 @@ function ffmpeg(tmpPath, dirD)
|
||||
if gFormat == ".ogg" then gFormat = "libvorbis" 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 codec = "ffmpeg -i "..tmpPath.." -acodec "..gFormat.." -ac 2 -ab "..gBitrate.." -vn -y "..subSpaces
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user