summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/OronCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-24 17:16:34 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-24 17:16:34 +0100
commit3ae2fbb170ad0f2bfe1ebf7f59e76d3645861f0a (patch)
treeb01e2c881aaf744aaab0af613a7a26e7129f2028 /module/plugins/accounts/OronCom.py
parententer captchas on webui (diff)
parentRapidgator: fixed bug #47 (diff)
downloadpyload-3ae2fbb170ad0f2bfe1ebf7f59e76d3645861f0a.tar.xz
Merge remote-tracking branch 'origin/stable'
Conflicts: module/plugins/accounts/FilesonicCom.py module/plugins/accounts/OronCom.py module/plugins/accounts/ShareonlineBiz.py module/plugins/addons/UpdateManager.py module/plugins/crypter/FilesonicComFolder.py module/plugins/hoster/BezvadataCz.py module/plugins/hoster/EuroshareEu.py module/plugins/hoster/FilesonicCom.py module/plugins/hoster/MegauploadCom.py module/plugins/hoster/Premium4Me.py module/plugins/hoster/YoutubeCom.py module/plugins/internal/MultiHoster.py module/utils.py
Diffstat (limited to 'module/plugins/accounts/OronCom.py')
-rwxr-xr-xmodule/plugins/accounts/OronCom.py56
1 files changed, 0 insertions, 56 deletions
diff --git a/module/plugins/accounts/OronCom.py b/module/plugins/accounts/OronCom.py
deleted file mode 100755
index 2c1d33162..000000000
--- a/module/plugins/accounts/OronCom.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: DHMH
-"""
-
-from module.plugins.Account import Account
-import re
-from time import strptime, mktime
-from module.utils import formatSize, parseFileSize
-
-class OronCom(Account):
- __name__ = "OronCom"
- __version__ = "0.13"
- __type__ = "account"
- __description__ = """oron.com account plugin"""
- __author_name__ = ("DHMH")
- __author_mail__ = ("DHMH@pyload.org")
-
- def loadAccountInfo(self, req):
- req.load("http://oron.com/?op=change_lang&lang=german")
- src = req.load("http://oron.com/?op=my_account").replace("\n", "")
- validuntil = re.search(r"<td>Premiumaccount läuft bis:</td>\s*<td>(.*?)</td>", src)
- if validuntil:
- validuntil = validuntil.group(1)
- validuntil = int(mktime(strptime(validuntil, "%d %B %Y")))
- trafficleft = re.search(r'<td>Download Traffic verfügbar:</td>\s*<td>(.*?)</td>', src).group(1)
- self.logDebug("Oron left: " + formatSize(parseFileSize(trafficleft)))
- trafficleft = int(self.parseTraffic(trafficleft))
- premium = True
- else:
- validuntil = -1
- trafficleft = None
- premium = False
- tmp = {"validuntil": validuntil, "trafficleft": trafficleft, "premium" : premium}
- return tmp
-
- def login(self, req):
- req.load("http://oron.com/?op=change_lang&lang=german")
- page = req.load("http://oron.com/login", post={"login": self.loginname, "password": self.password, "op": "login"})
- if r'<b class="err">Login oder Passwort falsch</b>' in page:
- self.wrongPassword()
-