1 2 3 4 5 6
function on_start_file() os.execute("curl -X POST \"$HASS_SERVER/api/webhook/movie\""); end mp.register_event("start-file", on_start_file)