设想情况:
在1.1.1上,我不能使用AAC+编码器。因此,我已经安装了1.3.1和AAC+支持。但是使用相同的.liq文件,这两个版本的作用不同。
出于某种原因,1.1起作用,1.3不起作用:
def my_request_function() =
# Get the first line of my external process
result = list.hd(get_process_lines("php -q liquid.php"))
# Create and return a request using this result
request.create(result)
end错误:
At line 17, char 24:
this value has type
(default:_)->_ (inferred at line 15, char 19-58)
but it should be a subtype of
string我想读PHP脚本中的“下一首歌”。在1.1.1上使用MP3 (+icecast2 2),但是由于我需要AAC+,所以我使用的是1.3.1,无法理解如何读取外部脚本。
有什么想法吗?谢谢。
发布于 2017-07-18 04:01:58
1.3在list.hd和其他列表函数中添加了另一个参数。https://github.com/savonet/liquidsoap/blob/master/CHANGES#L52
您可以使用新的默认值参数更新代码,它应该可以工作。
result = list.hd(default="", get_process_lines("php -q liquid.php"))https://stackoverflow.com/questions/45156666
复制相似问题