From 238bb15793c90184d52b806399e456f2a1e907d0 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 9 Jul 2015 22:32:34 -0400 Subject: [PATCH] SAAS-941: Liquidsoap fails to start for stations with the substrings true/false in their names --- python_apps/pypo/liquidsoap/generate_liquidsoap_cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/pypo/liquidsoap/generate_liquidsoap_cfg.py b/python_apps/pypo/liquidsoap/generate_liquidsoap_cfg.py index 7e98a47a9..4f104c62c 100644 --- a/python_apps/pypo/liquidsoap/generate_liquidsoap_cfg.py +++ b/python_apps/pypo/liquidsoap/generate_liquidsoap_cfg.py @@ -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