summaryrefslogtreecommitdiffstats
path: root/module/ConfigParser.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-11-09 18:17:35 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-11-09 18:17:35 +0100
commit1257e46ba9dc952f2e596b1f377fc45925dfc3e1 (patch)
tree23ba8aa24e96bae8c345a393034cbad084099312 /module/ConfigParser.py
parentadded browser to set paths in settings (diff)
downloadpyload-1257e46ba9dc952f2e596b1f377fc45925dfc3e1.tar.xz
little pathchooser improvements
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: