From 172cd6b7da0232aec274d01c13cd73b1a5343b9e Mon Sep 17 00:00:00 2001 From: Koch Michael Date: Sun, 1 Jun 2014 20:47:33 +0200 Subject: Revert "Fix downloads on UploadedTo" This reverts commit cf621cfaa7d6cd1e6a80a3688bb56afb5592dfb0. --- pyload/plugins/hoster/UploadedTo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyload/plugins/hoster/UploadedTo.py b/pyload/plugins/hoster/UploadedTo.py index 5dc368e20..6d17bcbd9 100644 --- a/pyload/plugins/hoster/UploadedTo.py +++ b/pyload/plugins/hoster/UploadedTo.py @@ -146,10 +146,10 @@ class UploadedTo(Hoster): self.handleFree() def handlePremium(self): - self.account.getAccountInfo(True) + info = self.account.getAccountInfo(self.user, True) self.logDebug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name": self.__name__, - "left": self.account.trafficleft / 1024 / 1024}) - if int(self.data[1]) / 1024 > self.account.trafficleft: + "left": info["trafficleft"] / 1024 / 1024}) + if int(self.data[1]) / 1024 > info["trafficleft"]: self.logInfo(_("%s: Not enough traffic left" % self.__name__)) self.account.empty(self.user) self.resetAccount() -- cgit v1.2.3