From 090c4f70dc08521e59c98ecc7cb64b2a64150d81 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Sun, 20 Aug 2023 10:23:13 +0300 Subject: [PATCH] fix error parsing string containing '=' characters --- cctv-scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cctv-scheduler.py b/cctv-scheduler.py index fa95fa3..ddc497d 100644 --- a/cctv-scheduler.py +++ b/cctv-scheduler.py @@ -145,7 +145,7 @@ class Parse: for line in strings.replace('\n', ';').split(';'): if not line.lstrip().startswith('#') and "=" in line: dictionary[line.split('=')[0].strip()] = ( - line.split('=')[1].strip().split(';')[0].strip() + line.split('=', maxsplit=1)[1].strip().split(';')[0].strip() ) return dictionary