diff options
author | mkaay <mkaay@mkaay.de> | 2010-12-12 18:39:25 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-12-12 18:39:25 +0100 |
commit | 62ef06e030180ea8ba2fd31c41c40246a3ade740 (patch) | |
tree | 65d40f395cea53d0531ad1f5c0f5be7f4bf565ac /module/plugins/Account.py | |
parent | universal progress (ex. unrar progress), link info now emits update event, up... (diff) | |
download | pyload-62ef06e030180ea8ba2fd31c41c40246a3ade740.tar.xz |
missing files...
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 289e68f44..7867ccdcd 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -191,10 +191,12 @@ class Account(): def empty(self, user): if self.infos.has_key(user): - self.core.log.warning(_("%(plugin)s Account %(user)s has not enough traffic") % {"plugin" : self.__name__, "user": user}) + self.core.log.warning(_("%(plugin)s Account %(user)s has not enough traffic, checking again in 30min") % {"plugin" : self.__name__, "user": user}) self.infos[user].update({"trafficleft": 0}) + self.core.scheduler.addJob(30*60, self.getAccountInfo, [user]) def expired(self, user): if self.infos.has_key(user): - self.core.log.warning(_("%(plugin)s Account %(user)s is expired") % {"plugin" : self.__name__, "user": user}) + self.core.log.warning(_("%(plugin)s Account %(user)s is expired, checking again in 1h") % {"plugin" : self.__name__, "user": user}) self.infos[user].update({"validuntil": time() - 1}) + self.core.scheduler.addJob(60*60, self.getAccountInfo, [user]) |