summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-06 19:54:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-06 19:54:46 +0200
commit41c26097b627cfaa15dcaa473d4300e5d0ec268d (patch)
treeac37ad877be45ee36057b43bde58580023360caa /module/plugins/accounts
parentrecheck fix, account update fix (diff)
downloadpyload-41c26097b627cfaa15dcaa473d4300e5d0ec268d.tar.xz
final fixesv0.4.1
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/DepositfilesCom.py27
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)