Hello,

Thank you. In this case, how would I retrieve more than the first line? Say, 
for instance, if I want to set multiple pieces of metadata.

Thanks,
Brandon
On Jun 30, 2012, at 11:26 AM, Romain Beauxis wrote:

> 2012/6/29 Brandon Olivares <[email protected]>:
>> Hello,
> 
> Hi!
> 
>> I would have LiquidSoap grab them.
> 
> Then in this case, I'd suggest looking at the on_metadata operator:
>  http://liquidsoap.fm/doc-1.0.0/reference.html#map_metadata
> 
> If you set insert_missing to true, the map_metadata will be called
> when your show begins. At that point, you should be able to execute a
> script of yours from within your liquidsoap instance. This script
> would fetch the show's metadata and inject them.
> 
> Here's a quick mockup:
> 
> live = (...)
> 
> def fetch_live_title(_) =
>  title = list.hd(get_process_lines(...))
> 
>  [ ("title", title ) ]
> end
> 
> live = map_metadata(insert_missing=true, fetch_live_title, live)
> 
> Hope this helps,
> Romain


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to