summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 17:32:11 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 17:32:11 +0100
commit557f5883887cea1f62844fcf49f5b6728bfb64af (patch)
tree24d789a78325bf8068af8d23ca4ed01aad6d61e2 /module/plugins
parentFix encoding issues in RAR plugin log messages (diff)
parentFix encoding/decoding issues while extracting RAR archives. (diff)
downloadpyload-557f5883887cea1f62844fcf49f5b6728bfb64af.tar.xz
Merge heads.
Diffstat (limited to 'module/plugins')
-rwxr-xr-xmodule/plugins/hoster/OronCom.py9
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)
+