SAAS-941: Liquidsoap fails to start for stations with the substrings true/false in their names

This commit is contained in:
Albert Santoni 2015-07-09 22:32:34 -04:00
parent c44035c27d
commit 238bb15793
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def generate_liquidsoap_config(ss):
str_buffer = "%s = %s\n" % (key, int(value))
except ValueError:
try: # Is it a boolean?
if "true" in value or "false" in value:
if value=="true" or value=="false":
str_buffer = "%s = %s\n" % (key, value.lower())
else:
raise ValueError() # Just drop into the except below