OK. I got this working -- although it appears that metadata updates via this method do not work on ogg/flac streams. I don't get an error (as I do when attempting a URL update on that mountpoint) but it does not register with Icecast.
Updates to ogg/vorbis mountpoints via this method also cause the same stream glitches in some players (notably VLC) that URL updates do. So a big fail on both intended uses :-( If anyone has come up with a method to update flac mountpoints or to do glitch-free vorbis updates, I'd *love* to hear about it. --- Bill Goldsmith Radio Paradise www.radioparadise.com On Sun, Apr 7, 2019 at 4:36 PM Romain Beauxis <romain.beau...@gmail.com> wrote: > Hi! > > Le sam. 30 mars 2019 à 16:39, William Goldsmith <b...@radioparadise.com> > a écrit : > > > > 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=""))]) > > What version of liquidsoap are you using? > > Romain > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users >
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users