tracks = on_metadata(fun (m) -> system("echo #{quote(m[\"on_air\"])}
#{quote(m[\"title\"])} >> /var/log/liquidsoap/display.log"),tracks)
Cheers !
http://www.subflow.net - Creative Commons webradio.
On Thu, Aug 13, 2009 at 11:37 AM, Chricken <[email protected]> wrote:
> Hello,
>
> I still haven't got it perfectly with logging.
> [email protected] has helped me on the way.
> But I still haven't got, how liquidsoap handles with functions and
> metadata.
>
> I would like to get a log where simply stands for each new metadata:
> Date - time - artist - track
>
> What I have got in the log now is the complete metadata:
> [ ("album","Radio-Aktivit\195\164t"), ("genre","Electronic"),
> ("comment","BonkEnc Audio Encoder <http://www.bonkenc.org/>"),
> ("filename","/home/musik/main/elektropop/JINGLES/Kraftwerk - Die Stimme
> der Energie.mp3"), ("status","playing"), ("year","1975"),
> ("initial_uri","/home/musik/main/elektropop/JINGLES/Kraftwerk - Die
> Stimme der Energie.mp3"), ("on_air","2009/08/13 11:22:42"), ("rid","0"),
> ("artist","Kraftwerk"), ("track","7"), ("temporary","false"),
> ("title","Die Stimme der Energie") ]
>
> I only want "on_air", "artist" and "title".
> How do I filter that information?
>
> My liq-file looks like this:
>
> #... some source-declaration
> #Metadaten loggen
> full = on_metadata(fun(meta) -> system("echo #{quote(string_of(meta))}
> >> /home/musik/sweet.log"),full)
> # Output the stream
> output.icecast.mp3(name = "welle303", host = "localhost", port = 8000,
> password = "gamnys", mount = "radio", restart=true, genre="electronica",
> url="http://www.welle303.de", description="24/7 nur die beste
> elektronische Musik", full)
>
>
> Best regards and thank you in advance
> Chricken
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users