CC-6052: Fix problem with stream passwords

This commit is contained in:
Albert Santoni 2015-06-08 14:18:19 -04:00
parent 14f37909d1
commit 146146e35f
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ def generate_liquidsoap_config(ss):
for key, value in data.iteritems(): for key, value in data.iteritems():
try: try:
if not "port" in key and not "bitrate" in key: # Stupid hack
raise ValueError()
str_buffer = "%s = %s\n" % (key, int(value)) str_buffer = "%s = %s\n" % (key, int(value))
except ValueError: except ValueError:
try: # Is it a boolean? try: # Is it a boolean?