Mandy/main.lua

20 lines
408 B
Lua
Raw Normal View History

#!/usr/bin/lua5.2
2013-07-23 21:23:31 -05:00
require("mandy")
2013-08-03 17:36:45 -05:00
dofile("mandy.cfg")
2013-07-23 21:23:31 -05:00
function main()
local url=global.url()
if not url then return false end
2013-07-23 21:23:31 -05:00
-- 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)
2013-07-23 21:23:31 -05:00
end
2013-07-23 22:56:10 -05:00
--initialize function "main"
2013-07-23 21:23:31 -05:00
main()