Hi josh!
Le 21 avril 2012 12:50, Josh <[email protected]> a écrit :
> hi all,
> is there an way to input an http source ownly at serton times on serton
> days?
> but, if the source is not activ, stay on the same music source?
> see, i am trying to relay a show that someone would like me to do, but no
> other show on that station.
The most simple way to do this is to plug your input.http into a
switch with a time-based condition. Something like:
# Http source
s = input.http(...)
# Pull data from s at all time
output.dummy(fallible=true, s)
# Make s available between 10 and 11 AM
s = switch( [ ( { 10h-11h }, s) ])
You may be able to adapt this snippet to your needs I think. Time
predicates are documented there:
http://liquidsoap.fm/doc-1.0.0/language.html (section "Time intervals")
As you may have noticed, I also plugged an output.dummy directly onto
the input.http source. This is a nice trick to make sure that even
when the source is not used, its data is flushed. Without it, when the
source is not used, it will keep on receiving data, which will make
its internal buffer override, resulting in garbage sound and lots of
log lines..
Good luck, let us know if you need more information!
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