summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Koch Michael <charlie8913@gmail.com> 2014-06-01 20:47:33 +0200
committerGravatar Koch Michael <charlie8913@gmail.com> 2014-06-01 20:47:33 +0200
commit172cd6b7da0232aec274d01c13cd73b1a5343b9e (patch)
treee3bbef37f2b2e0c02bc96e6db66d6ffcd00a6963
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadpyload-172cd6b7da0232aec274d01c13cd73b1a5343b9e.tar.xz
Revert "Fix downloads on UploadedTo"
-rw-r--r--pyload/plugins/hoster/UploadedTo.py6
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()