pypo-initialize syntax cleanup
This commit is contained in:
parent
34523e8ec9
commit
41efd93628
1 changed files with 2 additions and 4 deletions
|
@ -48,9 +48,7 @@ def generate_liquidsoap_config(ss):
|
||||||
buffer = d[u'keyname'] + " = "
|
buffer = d[u'keyname'] + " = "
|
||||||
if(d[u'type'] == 'string'):
|
if(d[u'type'] == 'string'):
|
||||||
temp = d[u'value']
|
temp = d[u'value']
|
||||||
if(temp == ""):
|
buffer += '"%s"' % temp
|
||||||
temp = ""
|
|
||||||
buffer += "\"" + temp + "\""
|
|
||||||
else:
|
else:
|
||||||
temp = d[u'value']
|
temp = d[u'value']
|
||||||
if(temp == ""):
|
if(temp == ""):
|
||||||
|
@ -58,7 +56,7 @@ def generate_liquidsoap_config(ss):
|
||||||
buffer += temp
|
buffer += temp
|
||||||
buffer += "\n"
|
buffer += "\n"
|
||||||
fh.write(api_client.encode_to(buffer))
|
fh.write(api_client.encode_to(buffer))
|
||||||
fh.write("log_file = \"/var/log/airtime/pypo-liquidsoap/<script>.log\"\n");
|
fh.write('log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"\n')
|
||||||
fh.close()
|
fh.close()
|
||||||
|
|
||||||
PATH_INI_FILE = '/etc/airtime/pypo.cfg'
|
PATH_INI_FILE = '/etc/airtime/pypo.cfg'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue