Hi,
On Sat, Mar 22, 2008 at 1:01 PM, Romain Beauxis <[EMAIL PROTECTED]> wrote:
> Heh, seems you missed a space !
Yes there should be a space after "basename". You can also use a
simpler version with an up-to-date liquidsoap:
radio = map_metadata(fun(m)->[("title", basename(m["filename"])],
playlist("/home/user/www/Radio/minimal"))
> Also, the function should return the full list, if you use it like that all
> other medata will be lost..
No, I already pointed that in a previous mail, saying that it would
surprise you: the list behaves as a list of updates, not as an exact
replacement. (This is probably not what you meant, but that what
happens because you just iterate Request.set_metadata on that list.)
Cheers,
--
David