Hi,

Quick update, I managed to do what I wanted, maybe it's the "noob" way, but
here's what I got:

# A function applied to each metadata chunk
> def dj_title(m) =
>   # Grab the current title
>   title = m["title"]
>   # Return a new title metadata
>   [("title","Live DJ / #{title}")]
> end
> # Apply map_metadata to s using append_title
> dj = map_metadata(dj_title, dj)


And so added to each live http that comes in.

Best regards,
        *Ákos Veres*

_____________________________________________
http://akos.me - A little about me.



On Wed, Sep 19, 2012 at 3:03 PM, Akos Veres <[email protected]> wrote:

> Dear David,
>
> Thank you very much for the feedback, I'll play around and report back,
> maybe I'll figure it out. Thank you for making time to reply (:
>
> Best regards,
>         *Ákos Veres*
>
> _____________________________________________
> http://akos.me - A little about me.
>
>
>
> On Wed, Sep 19, 2012 at 2:44 PM, David Baelde <[email protected]>wrote:
>
>> Hi,
>>
>> The switch() operator relays the metadata from its current child
>> source. So pretty much all you need is to make sure that the live
>> stream has metadata attached to it. The overall structure would be
>> switch(map_live(vdj),map(auto)) where the map* functions are relevant
>> instances of map_metadata.
>>
>> I'm guessing you'd like some help on writing map_metadata, possibly
>> introducing special cases rewriting metadata in particular ways based
>> on external events. I don't have much time for that, all I can do is
>> advise you to spend some time playing with your functions in
>> "liquidsoap --interactive" or some simple one-liners before going
>> "online" in your radio.
>>
>> Have fun,
>> --
>> David
>>
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to