add legacy script for liquidsoap 1.1.1 compatibility
This commit is contained in:
parent
1c2906f5ab
commit
0931ba842a
6 changed files with 890 additions and 25 deletions
|
@ -266,7 +266,7 @@ def input.http_restart(~id,~initial_url="http://dummy/url")
|
|||
source = audio_to_stereo(input.http(buffer=5.,max=15.,id=id,autostart=false,initial_url))
|
||||
|
||||
def stopped()
|
||||
"stopped" == list.hd(server.execute("#{id}.status"))
|
||||
"stopped" == list.hd(server.execute("#{id}.status"), default="")
|
||||
end
|
||||
|
||||
server.register(namespace=id,
|
||||
|
@ -321,7 +321,7 @@ def cross_http(~debug=true,~http_input_id,source)
|
|||
cross_d = 3.
|
||||
|
||||
def crosser(a,b)
|
||||
url = list.hd(server.execute('#{id}.url'))
|
||||
url = list.hd(server.execute('#{id}.url'), default="")
|
||||
status = list.hd(server.execute('#{id}.status'))
|
||||
on_m([("source_url",url)])
|
||||
if debug then
|
||||
|
@ -374,7 +374,7 @@ def http_fallback(~http_input_id,~http,~default)
|
|||
end
|
||||
|
||||
def connected()
|
||||
status = list.hd(server.execute("#{id}.status"))
|
||||
status = list.hd(server.execute("#{id}.status"), default="")
|
||||
not(list.mem(status,["polling","stopped"]))
|
||||
end
|
||||
connected = gracetime(connected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue