diff options
author | Koch Michael <charlie8913@gmail.com> | 2014-05-31 22:15:05 +0200 |
---|---|---|
committer | Koch Michael <charlie8913@gmail.com> | 2014-05-31 22:15:05 +0200 |
commit | cf621cfaa7d6cd1e6a80a3688bb56afb5592dfb0 (patch) | |
tree | 67f2d5d51eadf85515637a449c0afc989f2a1fa3 | |
parent | Fix wrong value for 'Traffic Left' for hoster UploadedTo (diff) | |
download | pyload-cf621cfaa7d6cd1e6a80a3688bb56afb5592dfb0.tar.xz |
Fix downloads on UploadedTo
getAccountInfo has no result value, instead it modifies properties (like
trafficleft) of self.account.
-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 6d17bcbd9..5dc368e20 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): - info = self.account.getAccountInfo(self.user, True) + self.account.getAccountInfo(True) self.logDebug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name": self.__name__, - "left": info["trafficleft"] / 1024 / 1024}) - if int(self.data[1]) / 1024 > info["trafficleft"]: + "left": self.account.trafficleft / 1024 / 1024}) + if int(self.data[1]) / 1024 > self.account.trafficleft: self.logInfo(_("%s: Not enough traffic left" % self.__name__)) self.account.empty(self.user) self.resetAccount() |