CC-5990, CC-5991 - Python cleanup, removed need for /usr/lib/airtime
This commit is contained in:
parent
cd102b984b
commit
875a9dfd8b
115 changed files with 248 additions and 212 deletions
21
python_apps/pypo/liquidsoap/liquidsoap_auth.py
Normal file
21
python_apps/pypo/liquidsoap/liquidsoap_auth.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
from api_clients import *
|
||||
import sys
|
||||
|
||||
api_clients = api_client.AirtimeApiClient()
|
||||
|
||||
dj_type = sys.argv[1]
|
||||
username = sys.argv[2]
|
||||
password = sys.argv[3]
|
||||
|
||||
source_type = ''
|
||||
if dj_type == '--master':
|
||||
source_type = 'master'
|
||||
elif dj_type == '--dj':
|
||||
source_type = 'dj'
|
||||
|
||||
response = api_clients.check_live_stream_auth(username, password, source_type)
|
||||
|
||||
if 'msg' in response:
|
||||
print response['msg']
|
||||
else:
|
||||
print False
|
Loading…
Add table
Add a link
Reference in a new issue