20 lines
389 B
Lua
Executable File
20 lines
389 B
Lua
Executable File
#!/usr/bin/lua5.2
|
|
require("mandy")
|
|
|
|
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()
|
|
|