diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 16:03:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 16:03:18 +0100 |
commit | 0331df435b912d8abfc012d15fd8be9ae90ad78d (patch) | |
tree | f4e44f5ea7da19d33235ba311ade9f1133c30a97 /module/plugins/accounts | |
parent | Merge branch 'stable' into 0.4.10 (diff) | |
download | pyload-0331df435b912d8abfc012d15fd8be9ae90ad78d.tar.xz |
Fix previous merge
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/RapiduNet.py | 45 | ||||
-rw-r--r-- | module/plugins/accounts/SafesharingEu.py | 16 |
2 files changed, 0 insertions, 61 deletions
diff --git a/module/plugins/accounts/RapiduNet.py b/module/plugins/accounts/RapiduNet.py deleted file mode 100644 index 2fabb6120..000000000 --- a/module/plugins/accounts/RapiduNet.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- - -import re -from module.plugins.Account import Account -from module.common.json_layer import json_loads - - -class RapiduNet(Account): - __name__ = "RapiduNet" - __type__ = "account" - __version__ = "0.01" - - __description__ = """Rapidu.net account plugin""" - __license__ = "GPLv3" - __authors__ = [("prOq", None)] - - - ACCOUNT_INFO_PATTERN = '<a href="premium/" style="padding-left: 0px;">Account: <b>(.*?)</b></a>' - - - def loadAccountInfo(self, user, req): - premium = False - - req.load('https://rapidu.net/ajax.php?a=getChangeLang', post={"_go": "", "lang": "en"}) - self.html = req.load('https://rapidu.net/', decode=True) - - m = re.search(self.ACCOUNT_INFO_PATTERN, self.html) - if m: - if m.group(1) == "Premium": - premium = True - - return {"validuntil": None, "trafficleft": None, "premium": premium} - - - def login(self, user, data, req): - try: - json = req.load('https://rapidu.net/ajax.php?a=getUserLogin', post={"_go": "", "login": user, "pass": data['password'], "member": "1"}) - json = json_loads(json) - self.logDebug(json) - - if not json['message'] == "success": - self.wrongPassword() - except Exception, e: - self.logError(e) - diff --git a/module/plugins/accounts/SafesharingEu.py b/module/plugins/accounts/SafesharingEu.py deleted file mode 100644 index 2e58d33b3..000000000 --- a/module/plugins/accounts/SafesharingEu.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- - -from module.plugins.internal.XFSAccount import XFSAccount - - -class SafesharingEu(XFSAccount): - __name__ = "SafesharingEu" - __type__ = "account" - __version__ = "0.02" - - __description__ = """Safesharing.eu account plugin""" - __license__ = "GPLv3" - __authors__ = [("guidobelix", "guidobelix@hotmail.it")] - - - HOSTER_DOMAIN = "safesharing.eu" |