Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script_name="process dumb shit"
- script_description="___"
- script_version="0.0.1"
- script_author="line0"
- local LineCollection = require("a-mo.LineCollection")
- local util = require("aegisub.util")
- local l0Common = require("l0.Common")
- function process(sub,sel,res)
- local lines = LineCollection(sub,sel)
- lines:runCallback(function(lines, line, i)
- line.text = line.text:gsub("(%d:%d%d:%d%d.%d%d)%d", function(timecode)
- return util.ms2timecode(util.timecode2ms(timecode) + tonumber(line.effect)) .. "0"
- end)
- end, true)
- lines:replaceLines()
- end
- aegisub.register_macro(script_name, script_description, process)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement