CC-3224: "On-the-fly" stream rebroadcasting
- web interface - auth script for liquidsoap - DB changes
This commit is contained in:
parent
701ed82f40
commit
48bb19d758
26 changed files with 650 additions and 101 deletions
19
python_apps/pypo/liquidsoap_scripts/liquidsoap_auth.py
Normal file
19
python_apps/pypo/liquidsoap_scripts/liquidsoap_auth.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
from api_clients import *
|
||||
from configobj import ConfigObj
|
||||
import sys
|
||||
import json
|
||||
|
||||
try:
|
||||
config = ConfigObj('/etc/airtime/pypo.cfg')
|
||||
|
||||
except Exception, e:
|
||||
print 'error: ', e
|
||||
sys.exit()
|
||||
|
||||
api_clients = api_client.api_client_factory(config)
|
||||
|
||||
username = sys.argv[1]
|
||||
password = sys.argv[2]
|
||||
response = api_clients.check_live_stream_auth(username, password)
|
||||
|
||||
print response['msg']
|
Loading…
Add table
Add a link
Reference in a new issue