2012/2/7 Alexandru Matei <[email protected]>:
> Hi!

Hi!

> I need to get the metadata for the next three tracks. I don't want to
> use a 3rd party app. I'm sure this can be done with liquidsoap also and
> that is better not to make system calls which are usually expensive in
> point of resources involved. Just that I don't know how. I searched the
> sources for the code for request.metadata but I didn't find it.
>
> I plan to get the filename for the next three tracks by executind a
> server command: my_playlist.next. But I don't know what to do next.

These can be gathered by using server/telnet commands. For instance,
for a queue of requests you have a "source_ID.queue" command.

For now, within scripts, you need to use server.execute. Using this
command, you will received exactly the same output as when running the
server command manually, line by line. You'll then have to parse that
data.

This unfortunately the best you can do for now regarding internal
server commands. We have been dying to generalize that and add support
for structured internal commands instead of the current server.execute
but this needs a lot of work, including fundamental changes of the
languages (which are already ongoing..)

Take care,
Romain

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to