CC-4218: Live resource: Cannot connect live resource.
- fixed
This commit is contained in:
parent
5315d1efd0
commit
1c9e290982
|
@ -13,6 +13,6 @@ if dj_type == '--master':
|
||||||
elif dj_type == '--dj':
|
elif dj_type == '--dj':
|
||||||
source_type = 'dj'
|
source_type = 'dj'
|
||||||
|
|
||||||
response = api_clients.check_live_stream_auth(username, password, type)
|
response = api_clients.check_live_stream_auth(username, password, source_type)
|
||||||
|
|
||||||
print response['msg']
|
print response['msg']
|
||||||
|
|
|
@ -160,19 +160,18 @@ end
|
||||||
|
|
||||||
#auth function for live stream
|
#auth function for live stream
|
||||||
def check_master_dj_client(user,password) =
|
def check_master_dj_client(user,password) =
|
||||||
|
log("master connected")
|
||||||
#get the output of the php script
|
#get the output of the php script
|
||||||
ret = get_process_lines("python /usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_auth.py --master #{user} #{password}")
|
ret = get_process_lines("python /usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_auth.py --master #{user} #{password}")
|
||||||
#ret has now the value of the live client (dj1,dj2, or djx), or "ERROR"/"unknown" ...
|
#ret has now the value of the live client (dj1,dj2, or djx), or "ERROR"/"unknown" ...
|
||||||
ret = list.hd(ret)
|
ret = list.hd(ret)
|
||||||
|
|
||||||
#return true to let the client transmit data, or false to tell harbor to decline
|
#return true to let the client transmit data, or false to tell harbor to decline
|
||||||
if (ret == "True") then
|
ret == "True"
|
||||||
true
|
|
||||||
else
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_dj_client(user,password) =
|
def check_dj_client(user,password) =
|
||||||
|
log("live dj connected")
|
||||||
#get the output of the php script
|
#get the output of the php script
|
||||||
ret = get_process_lines("python /usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_auth.py --dj #{user} #{password}")
|
ret = get_process_lines("python /usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_auth.py --dj #{user} #{password}")
|
||||||
#ret has now the value of the live client (dj1,dj2, or djx), or "ERROR"/"unknown" ...
|
#ret has now the value of the live client (dj1,dj2, or djx), or "ERROR"/"unknown" ...
|
||||||
|
|
Loading…
Reference in New Issue