我想用 Liquidesoap 和 icecast 创建动态播放列表。我刚刚从 Liquidsoap 网站复制了教程,但不幸的是它不起作用。
这是我的代码:
def get_next() =
result = list.hd(get_process_lines("/var/www/radiod/yii program-generator/next-track 1"))
# Create and return a request using this result
request.create(result)
end
# Create the source
s = request.dynamic(id="s", get_next)
# Output
source = output.icecast(%mp3, host="localhost", port=8000, mount="opera.mp3", password="asd123", s)
运行检查命令时收到此错误消息:
Invalid value at line 9, char 20-37: That source is fallible.
因此,问题将围绕这一行:
s = request.dynamic(id="s", get_next)
你能帮我看看可能是什么失败吗?
提前谢谢你!