diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-01-16 17:39:27 +0100 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-01-16 17:39:27 +0100 |
commit | 8b569a22d9a5b12cc492e97d4cee28deb75a81ed (patch) | |
tree | 0ae5aa425d2c917d2f11613fbb3a4e9c71efa36f /module/plugins/accounts/Premium4Me.py | |
parent | additional extract logs (diff) | |
download | pyload-8b569a22d9a5b12cc492e97d4cee28deb75a81ed.tar.xz |
workaround premium4.me overcharging
Diffstat (limited to 'module/plugins/accounts/Premium4Me.py')
-rw-r--r-- | module/plugins/accounts/Premium4Me.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/Premium4Me.py b/module/plugins/accounts/Premium4Me.py index c8c4064ef..de4fdc219 100644 --- a/module/plugins/accounts/Premium4Me.py +++ b/module/plugins/accounts/Premium4Me.py @@ -2,7 +2,7 @@ from module.plugins.Account import Account class Premium4Me(Account):
__name__ = "Premium4Me"
- __version__ = "0.01"
+ __version__ = "0.02"
__type__ = "account"
__description__ = """Premium4.me account plugin"""
__author_name__ = ("RaNaN", "zoidberg")
@@ -17,7 +17,7 @@ class Premium4Me(Account): return account_info
def login(self, user, data, req):
- self.authcode = req.load("http://premium4.me/api/getauthcode.php?username=%s&password=%s" % (user, data["password"]))[:-1]
-
+ self.authcode = req.load("http://premium4.me/api/getauthcode.php?username=%s&password=%s" % (user, data["password"])).strip()
+
if "wrong username" in self.authcode:
self.wrongPassword()
\ No newline at end of file |