diff options
author | mkaay <mkaay@mkaay.de> | 2010-05-08 00:00:57 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-05-08 00:00:57 +0200 |
commit | 89737cad3e9ae4545613f068c674da39cc15aa14 (patch) | |
tree | 5609e84e51126f53bebf9a4ab9180169b10e02fa | |
parent | pycurl compression check (diff) | |
download | pyload-89737cad3e9ae4545613f068c674da39cc15aa14.tar.xz |
UploadedTo api fix
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 1ac277447..5a41e590c 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -56,7 +56,7 @@ class UploadedTo(Hoster): if self.usePremium: info = self.account.getAccountInfo(self.account.getAccountData(self)[0]) self.logger.info(_("%s: Use Premium Account (%sGB left)") % (self.__name__, info["trafficleft"]/1024/1024)) - if self.api_data["size"] > info["trafficleft"]: + if self.api_data["size"]/1024 > info["trafficleft"]: self.logger.info(_("%s: Not enough traffic left" % self.__name__)) self.usePremium = False else: @@ -88,7 +88,7 @@ class UploadedTo(Hoster): self.api_data = {} lines = src.splitlines() self.api_data["filename"] = lines[0] - self.api_data["size"] = int(lines[1]) # in kbytes + self.api_data["size"] = int(lines[1]) # in bytes self.api_data["checksum"] = lines[2] #sha1 def download_html(self): |