I'm using the example code (
https://www.liquidsoap.info/doc-1.3.6/icy_metadata.html):
def icy_update(v) =
# Parse the argument
l = string.split(separator=",",v)
def split(l,v) =
v = string.split(separator="=",v)
if list.length(v) >= 2 then
list.append(l,[(list.nth(v,0,default=""),list.nth(v,1,default=""))])
else
l
end
end
meta = list.fold(split,[],l)
# Update metadata
icy.update_metadata(mount="/mystream",password="hackme",
host="myserver.net",meta)
"Done !"
end
(with the correct mountpoint, password, etc.)
I'm getting the following parse error when starting the script:
At line 13, char 44-45: cannot apply that parameter because the function
(at line 13, char 31) has no argument labeled "default"!
line 13 is:
list.append(l,[(list.nth(v,0,default=""),list.nth(v,1,default=""))])
Any help appreciated!
-bg
---
Bill Goldsmith
Radio Paradise
www.radioparadise.com
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users