Hey,

On Sat, May 26, 2012 at 4:09 PM, Audiodef Online <[email protected]> wrote:
> Actually, what I want to do is to check to see if a particular server is
> alive, and if it is not, skip to the next item in the playlist that is
> not on that server, without involving any local playlist items, as there
> are none for my station.

Ok, I get the idea. If you think you can do better than wget (by
having a short timeout for connection and then a longer one for the
download) you can write your own download script and require that
liquidsoap uses it.

An easy first step would be to keep using the normal downloader for
the http protocol. Just define a new protocol "check", and replace
your URLs "http://foo"; by "check:http://foo";, and associate the
"check" protocol with a function that checks if the server is alive
and returns its argument (eg. ["http://foo";]) in that case, and
returns nothing otherwise (eg. []).

Hope this helps,
-- 
David

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