diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 11:44:24 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 11:44:24 +0100 |
commit | 31c5e0c1cbb6da955973bdce360eedbe61225688 (patch) | |
tree | 0170556dd7528723c803fb1c299199aca143ab24 /module/plugins/Account.py | |
parent | more fixes and chunk+resume debug (diff) | |
download | pyload-31c5e0c1cbb6da955973bdce360eedbe61225688.tar.xz |
fixed accounts
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r-- | module/plugins/Account.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py index 0c2bcb770..29c5f93b8 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -110,6 +110,7 @@ class Account(): "valid": self.accounts[name]["valid"], "trafficleft": None, # in kb, -1 for unlimited "maxtraffic": None, + "premium": True, #useful for free accounts "type": self.__name__, } @@ -143,14 +144,15 @@ class Account(): for user,data in self.accounts.iteritems(): if not data["valid"]: continue - if data["options"].has_key("time"): + if data["options"].has_key("time") and data["options"]["time"]: + time_data = "" try: time_data = data["options"]["time"][0] start, end = time_data.split("-") if not self.core.compare_time(start.split(":"), end.split(":")): continue except: - self.core.log.error(_("Your Time %s has wrong format, use: 1:22-3:44") % time) + self.core.log.warning(_("Your Time %s has wrong format, use: 1:22-3:44") % time_data) if self.infos.has_key(user): if self.infos[user].has_key("validuntil"): |