diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-06 19:54:46 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-06 19:54:46 +0200 |
commit | 41c26097b627cfaa15dcaa473d4300e5d0ec268d (patch) | |
tree | ac37ad877be45ee36057b43bde58580023360caa /module/plugins/accounts | |
parent | recheck fix, account update fix (diff) | |
download | pyload-41c26097b627cfaa15dcaa473d4300e5d0ec268d.tar.xz |
final fixesv0.4.1
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/DepositfilesCom.py | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py index 809381217..1410e6a37 100644 --- a/module/plugins/accounts/DepositfilesCom.py +++ b/module/plugins/accounts/DepositfilesCom.py @@ -30,18 +30,21 @@ class DepositfilesCom(Account): __author_mail__ = ("mkaay@mkaay.de") def getAccountInfo(self, user): - req = self.core.requestFactory.getRequest(self.__name__, user) - - src = req.load("http://depositfiles.com/de/gold/") - validuntil = re.search("noch den Gold-Zugriff: <b>(.*?)</b></div>", src).group(1) - - validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S"))) - - out = Account.getAccountInfo(self, user) - - tmp = {"validuntil":validuntil, "trafficleft":-1} - out.update(tmp) - return out + try: + req = self.core.requestFactory.getRequest(self.__name__, user) + + src = req.load("http://depositfiles.com/de/gold/") + validuntil = re.search("noch den Gold-Zugriff: <b>(.*?)</b></div>", src).group(1) + + validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S"))) + + out = Account.getAccountInfo(self, user) + + tmp = {"validuntil":validuntil, "trafficleft":-1} + out.update(tmp) + return out + except: + return Account.getAccountInfo(self, user) def login(self, user, data): req = self.core.requestFactory.getRequest(self.__name__, user) |