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