From be4a1551aa515c8a375c8689305328ac35f99de0 Mon Sep 17 00:00:00 2001 From: silvernode Date: Thu, 8 Aug 2013 16:02:57 -0500 Subject: [PATCH] temporary fix for error caused by ' --- mandy.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mandy.lua b/mandy.lua index 414a982..14fc169 100644 --- a/mandy.lua +++ b/mandy.lua @@ -177,8 +177,8 @@ function ffmpeg(tmpPath, dirD) if gFormat == ".mp3" then gFormat = "libmp3lame" end if gFormat == ".ogg" then gFormat = "libvorbis" end if gFormat == ".flac" then gFormat = "flac" end - - local subSpaces = string.gsub(dirD, " ", "\\ ") + local subSymbols = string.gsub(dirD, "'", "") + local subSpaces = string.gsub(subSymbols, " ", "\\ ") local codec = "ffmpeg -i "..tmpPath.." -acodec "..gFormat.." -ac 2 -ab "..gBitrate.." -vn -y "..subSpaces local flag = convert_mp3.go(codec, tmpPath)