Hello, Can anybody on the list answer this question? Is there a simple way to convert a playlist source to a list in order to use list.hd to retrieve only the first item within a RSS playlist?
Of course I can simply do this outside of ls, but I'm trying to stay within liquidsoap. On Fri, Aug 21, 2015, 4:42 PM Eduardo Martinez <[email protected]> wrote: > How can I retrieve only the first item from a RSS playlist source? > > I'm trying something like: > > single(list.hd(playlist("http://feeds.wnyc.org/radiolab"))) > > But list.hd is expecting an actual list not a source. > > At line 8, char 35-151: > this value has type > source(_) > but it should be a subtype of > [_] > > Is there a way to convert a playlist to a list object so I can then use > list.hd? > Or is there another mechanism to retrieve only the first item from a > playlist source? > > Thanks in advance. > >
------------------------------------------------------------------------------
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
