Newer
Older
#!/usr/bin/env liquidsoap
#
# Aura Engine (https://gitlab.servus.at/aura/engine)
#
# Copyright (C) 2017-now() - The Aura Engine Team.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
settings.init.allow_root.set(true)
settings.init.catch_exn.set(false)
settings.server.timeout.set(180.)
settings.server.telnet.set(true)
settings.server.telnet.bind_addr.set("0.0.0.0")
settings.server.telnet.port.set(1234)
# settings.log.file.path.set("../logs/<script>.log")
# settings.ffmpeg.log.level.set(5)
engine_meta_key_show_id = "show_id"
ignore(engine_meta_key_show_id)
assertEqualsError = error.register("AssertEqualsError")
def assertEquals(var1, var2) =
if var1 != var2 then
error.raise(assertEqualsError, "#{var1} != #{var2}")
else
print("#{var1} == #{var2}")
end
end