diff options
author | Pedro Algarvio <pedro@algarvio.me> | 2012-01-22 12:26:37 +0100 |
---|---|---|
committer | Pedro Algarvio <pedro@algarvio.me> | 2012-01-22 12:26:37 +0100 |
commit | cea5a881e0f2f0c0a4dd7ac4090d4d415192496e (patch) | |
tree | b635ca8c86e86fb251ee180eb29735148d9bd539 /module/plugins/hoster | |
parent | return pid for uploadContainer (diff) | |
download | pyload-cea5a881e0f2f0c0a4dd7ac4090d4d415192496e.tar.xz |
Bring Oron's premium account handling to latest api.
Diffstat (limited to 'module/plugins/hoster')
-rwxr-xr-x | module/plugins/hoster/OronCom.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/OronCom.py b/module/plugins/hoster/OronCom.py index 0be840d76..120aa8ff4 100755 --- a/module/plugins/hoster/OronCom.py +++ b/module/plugins/hoster/OronCom.py @@ -129,13 +129,13 @@ class OronCom(Hoster): self.logError("error in parsing site") def handlePremium(self): - info = self.account.getAccountInfo(self.user, True) - self.logDebug("Traffic left: %s" % info['trafficleft']) + self.account.getAccountInfo(True) + self.logDebug("Traffic left: %s" % self.account.trafficleft) self.logDebug("File Size: %d" % int(self.pyfile.size / 1024)) - if int(self.pyfile.size / 1024) > info["trafficleft"]: + if int(self.pyfile.size / 1024) > self.account.trafficleft: self.logInfo(_("Not enough traffic left")) - self.account.empty(self.user) + self.account.empty() self.fail(_("Traffic exceeded")) post_url = "http://oron.com/" + self.file_id @@ -147,3 +147,4 @@ class OronCom(Hoster): self.html = self.load(post_url, post=post_dict, ref=False, decode=True).encode("utf-8") link = re.search('href="(.*?)" class="atitle"', self.html).group(1) self.download(link) + |