summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/OronCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/OronCom.py')
-rwxr-xr-xmodule/plugins/hoster/OronCom.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/module/plugins/hoster/OronCom.py b/module/plugins/hoster/OronCom.py
index 2b9f42798..120aa8ff4 100755
--- a/module/plugins/hoster/OronCom.py
+++ b/module/plugins/hoster/OronCom.py
@@ -15,7 +15,7 @@ def getInfo(urls):
result.append((url, 0, 1, url))
continue
- m = re.search(OronCom.FILE_INFO_PATTERN, html, re.MULTILINE)
+ m = re.search(OronCom.FILE_INFO_PATTERN, html)
if m:
name = m.group(1)
hSize = float(m.group(2).replace(",", "."))
@@ -32,11 +32,11 @@ def getInfo(urls):
class OronCom(Hoster):
__name__ = "OronCom"
__type__ = "hoster"
- __pattern__ = r"http://(?:www.)?oron.com/(?!folder)\w+"
- __version__ = "0.15"
- __description__ = "Oron.com Hoster Plugin"
+ __pattern__ = r"http://(?:www.)?oron.com/"
+ __version__ = "0.13"
+ __description__ = "File Hoster: Oron.com"
__author_name__ = ("chrox", "DHMH")
- __author_mail__ = ("chrox@pyload.org", "webmaster@pcProfil.de")
+ __author_mail__ = ("chrox@pyload.org", "DHMH@pyload.org")
FILE_INFO_PATTERN = r'(?:Filename|Dateiname): <b class="f_arial f_14px">(.*?)</b>\s*<br>\s*(?:Größe|File size): ([0-9,\.]+) (Kb|Mb|Gb)'
@@ -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)
+