From 7a42ec87ad32578299c87942cacdcfcb1b2c46d4 Mon Sep 17 00:00:00 2001 From: silvernode Date: Mon, 5 Aug 2013 18:07:14 -0500 Subject: [PATCH] cleaned up pointless gBitrate crap and the extra y param --- mandy.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mandy.lua b/mandy.lua index c07c0d6..f606b8d 100644 --- a/mandy.lua +++ b/mandy.lua @@ -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