On Wed, 26 Dec 2012 08:31:10 -0500, David Baelde <[email protected]>  
wrote:

> 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.


Thanks for the info. It's rather difficult tracking down problems when you
are working with different LS versions: dev(0.92)/production(1.0.0.2).

I used "liquidsoap -r <file>" on the production (1.0.0.2) to check the  
opener-atdp.mp3 file that you mentioned above.

liquidsoap -r /usr/local/www/rcr/mp3/announce/opener/opener-atdp.mp3
Request resolved.
temporary="false"
decoder="MP3"
kind="{audio=0+;video=0+;midi=0+}"
rid="0"
initial_uri="/usr/local/www/rcr/mp3/announce/opener/opener-atdp.mp3"
status="ready"
filename="/usr/local/www/rcr/mp3/announce/opener/opener-atdp.mp3"
Computing duration: 62.58 sec.

I've tried this on a few files. All report 'audio=0+' hmmmm . . .

Again, after upgrading to LS 1.0.0.2 all fill-ins do not work. It looks  
like I'll have
to live with it.

On the positive side, I will be able to really slim down the daily .liq  
code :)


Thanks for your time on this,
kronos

>
> Hope this helps,


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to