Mandy/main.lua
silvernode f4731d488a Revert "Revert "Added a cfg file, poorly.""
everything was screwed
This reverts commit f9f328df297457bdf7a8e81d97a8bb11ccba3c9e.
2013-08-05 07:45:58 -05:00

20 lines
408 B
Lua
Executable File

#!/usr/bin/lua5.2
require("mandy")
dofile("mandy.cfg")
function main()
local url=global.url()
if not url then return false end
-- codec=sel_Codec()
local saveDir=global.dir()
if not saveDir then return false end
local tmpPath = global.path(url)
if not tmpPath then return false end
local convert = global.ffmpeg(tmpPath, saveDir)
end
--initialize function "main"
main()