summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/EgoFilesCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/EgoFilesCom.py')
-rw-r--r--module/plugins/accounts/EgoFilesCom.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/accounts/EgoFilesCom.py b/module/plugins/accounts/EgoFilesCom.py
index e5c781068..41b58c4e7 100644
--- a/module/plugins/accounts/EgoFilesCom.py
+++ b/module/plugins/accounts/EgoFilesCom.py
@@ -9,14 +9,16 @@ from module.utils import parseFileSize
class EgoFilesCom(Account):
__name__ = "EgoFilesCom"
- __version__ = "0.2"
__type__ = "account"
+ __version__ = "0.2"
+
__description__ = """Egofiles.com account plugin"""
__author_name__ = "stickell"
__author_mail__ = "l.stickell@yahoo.it"
PREMIUM_ACCOUNT_PATTERN = '<br/>\s*Premium: (?P<P>[^/]*) / Traffic left: (?P<T>[\d.]*) (?P<U>\w*)\s*\\n\s*<br/>'
+
def loadAccountInfo(self, user, req):
html = req.load("http://egofiles.com")
if 'You are logged as a Free User' in html:
@@ -37,6 +39,6 @@ class EgoFilesCom(Account):
html = req.load("http://egofiles.com/ajax/register.php",
post={"log": 1,
"loginV": user,
- "passV": data["password"]})
+ "passV": data['password']})
if 'Login successful' not in html:
self.wrongPassword()