2013-07-24 13:13:50 -05:00
|
|
|
#!/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()
|
2013-07-29 22:49:23 -05:00
|
|
|
if not url then return false end
|
2013-07-23 21:23:31 -05:00
|
|
|
-- codec=sel_Codec()
|
2013-07-29 22:49:23 -05:00
|
|
|
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()
|
|
|
|
|