diff options
author | Koch Michael <charlie8913@gmail.com> | 2014-06-01 20:47:33 +0200 |
---|---|---|
committer | Koch Michael <charlie8913@gmail.com> | 2014-06-01 20:47:33 +0200 |
commit | 172cd6b7da0232aec274d01c13cd73b1a5343b9e (patch) | |
tree | e3bbef37f2b2e0c02bc96e6db66d6ffcd00a6963 | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | pyload-172cd6b7da0232aec274d01c13cd73b1a5343b9e.tar.xz |
Revert "Fix downloads on UploadedTo"
This reverts commit cf621cfaa7d6cd1e6a80a3688bb56afb5592dfb0.
-rw-r--r-- | pyload/plugins/hoster/UploadedTo.py | 6 |
1 files 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() |