Liquidsoap Icecast request.dynamic错误

时间:2018-06-28 07:12:31

标签: icecast liquidsoap

我想用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)

您能帮我什么可能失败吗?

先谢谢您!

1 个答案:

答案 0 :(得分:0)

http://savonet.sourceforge.net/doc-svn/quick_start.html详细介绍了“ “该来源容易出错”。。可能希望浏览整个页面。