diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-10 21:31:08 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-10 21:31:08 +0100 |
commit | 619caad59f17f292184aaef0358640191191babf (patch) | |
tree | 1e8c3cf596a05bf7d010415b89d7c9333c156ec2 /module/plugins/accounts/FreakshareCom.py | |
parent | [FastshareCz] Fix account (diff) | |
download | pyload-619caad59f17f292184aaef0358640191191babf.tar.xz |
[FreakshareCom] Improve account
Diffstat (limited to 'module/plugins/accounts/FreakshareCom.py')
-rw-r--r-- | module/plugins/accounts/FreakshareCom.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/accounts/FreakshareCom.py b/module/plugins/accounts/FreakshareCom.py index 84ebf6751..6f895edd2 100644 --- a/module/plugins/accounts/FreakshareCom.py +++ b/module/plugins/accounts/FreakshareCom.py @@ -9,7 +9,7 @@ from module.plugins.Account import Account class FreakshareCom(Account): __name__ = "FreakshareCom" __type__ = "account" - __version__ = "0.1" + __version__ = "0.11" __description__ = """Freakshare.com account plugin""" __license__ = "GPLv3" @@ -33,8 +33,10 @@ class FreakshareCom(Account): def login(self, user, data, req): + req.load("http://freakshare.com/index.php?language=EN") + page = req.load("http://freakshare.com/login.html", None, {"submit": "Login", "user": user, "pass": data['password']}, cookies=True) - if "Falsche Logindaten!" in page or "Wrong Username or Password!" in page: + if ">Wrong Username or Password" in page: self.wrongPassword() |