diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-11-09 18:17:35 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-11-09 18:17:35 +0100 |
commit | 1257e46ba9dc952f2e596b1f377fc45925dfc3e1 (patch) | |
tree | 23ba8aa24e96bae8c345a393034cbad084099312 /module/ConfigParser.py | |
parent | added browser to set paths in settings (diff) | |
download | pyload-1257e46ba9dc952f2e596b1f377fc45925dfc3e1.tar.xz |
little pathchooser improvements
Diffstat (limited to 'module/ConfigParser.py')
-rw-r--r-- | module/ConfigParser.py | 6 |
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: |