diff options
author | 2014-10-05 01:49:51 +0200 | |
---|---|---|
committer | 2014-10-05 02:27:32 +0200 | |
commit | bcd90824766f98acbd8f59365829057560bc3353 (patch) | |
tree | bc620a367e7b18dced741fb7a3b56bf9d5173f77 /module/plugins/accounts/CyberlockerCh.py | |
parent | Better import lib header (diff) | |
download | pyload-bcd90824766f98acbd8f59365829057560bc3353.tar.xz |
Remove some dead accounts
Diffstat (limited to 'module/plugins/accounts/CyberlockerCh.py')
-rw-r--r-- | module/plugins/accounts/CyberlockerCh.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/module/plugins/accounts/CyberlockerCh.py b/module/plugins/accounts/CyberlockerCh.py deleted file mode 100644 index 729975fb0..000000000 --- a/module/plugins/accounts/CyberlockerCh.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- - -from module.plugins.internal.XFSPAccount import XFSPAccount -from module.plugins.internal.SimpleHoster import parseHtmlForm - - -class CyberlockerCh(XFSPAccount): - __name__ = "CyberlockerCh" - __type__ = "account" - __version__ = "0.01" - - __description__ = """Cyberlocker.ch account plugin""" - __author_name__ = "stickell" - __author_mail__ = "l.stickell@yahoo.it" - - MAIN_PAGE = "http://cyberlocker.ch/" - - - def login(self, user, data, req): - html = req.load(self.MAIN_PAGE + 'login.html', decode=True) - - action, inputs = parseHtmlForm('name="FL"', html) - if not inputs: - inputs = {"op": "login", - "redirect": self.MAIN_PAGE} - - inputs.update({"login": user, - "password": data['password']}) - - # Without this a 403 Forbidden is returned - req.http.lastURL = self.MAIN_PAGE + 'login.html' - html = req.load(self.MAIN_PAGE, post=inputs, decode=True) - - if 'Incorrect Login or Password' in html or '>Error<' in html: - self.wrongPassword() |