summaryrefslogtreecommitdiffstats
path: root/module/ConfigParser.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/ConfigParser.py')
-rw-r--r--module/ConfigParser.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/ConfigParser.py b/module/ConfigParser.py
index 98c82a1a5..da4e734e5 100644
--- a/module/ConfigParser.py
+++ b/module/ConfigParser.py
@@ -254,7 +254,11 @@ class ConfigParser:
return int(value)
elif typ == "bool":
return True if value.lower() in ("1","true", "on", "an","yes") else False
- elif typ == "str":
+ elif typ == "time":
+ if not value: value = "0:00"
+ if not ":" in value: value+=":00"
+ return value
+ elif typ in ("str","file","folder"):
try:
return value.encode("utf8")
except: