Hi,
On Thu, Dec 20, 2012 at 10:55 PM, <[email protected]> wrote:
> So, the question is how to fool LS in production to print out the value of
> the function. If I add
> printf or print, it'll probably barf on me, and I'm no wiser what is
> happening. Any ideas on how to insert
> it so that it might show up in Icecast's YP page, or failing that,
> somewhere I could see the output?
Just use print("Metadata: #{m}") or log("Metadata: #{m}") at the
beginning of the function f in your fill-in. It should work with any
(non-prehistoric) version of liquidsoap.
> For metadata:
> [("filename","/usr/local/www/rcr/mp3/announce/opener/opener-atdp.mp3"),
> ("status","playing"), ("source","atdp-mp3-top(dot)pls"), (
>
> "initial_uri","/usr/local/www/rcr/mp3/announce/opener/opener-atdp.mp3"),
> ("on_air","2012/12/20 13:30:32"), ("rid","358"),
> ("kind","{audio=1+;video=0;midi=0}"), ("decoder","MP3
> "), ("temporary","false")]
For this particular example, I'm not surprised if you don't see a
title added by your fill-in: it has several cases for openers, but I
didn't see any for opener-atdp.
Hope this helps,
--
David
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users