summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/PremiumTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-08 23:31:33 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-08 23:31:33 +0100
commit36e60a23497ae05736c24fed2f4ce936fb61f744 (patch)
treed743ace8e6c032cccb524cbb8474263d9d7bd4e1 /module/plugins/accounts/PremiumTo.py
parent"New Year" Update: internal plugins (diff)
downloadpyload-36e60a23497ae05736c24fed2f4ce936fb61f744.tar.xz
"New Year" Update: account plugins
Diffstat (limited to 'module/plugins/accounts/PremiumTo.py')
-rw-r--r--module/plugins/accounts/PremiumTo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/accounts/PremiumTo.py b/module/plugins/accounts/PremiumTo.py
index 2c486a1dd..ea6fbbf65 100644
--- a/module/plugins/accounts/PremiumTo.py
+++ b/module/plugins/accounts/PremiumTo.py
@@ -6,7 +6,7 @@ from module.plugins.Account import Account
class PremiumTo(Account):
__name__ = "PremiumTo"
__type__ = "account"
- __version__ = "0.06"
+ __version__ = "0.07"
__description__ = """Premium.to account plugin"""
__license__ = "GPLv3"
@@ -30,7 +30,8 @@ class PremiumTo(Account):
self.username = user
self.password = data['password']
authcode = req.load("http://premium.to/api/getauthcode.php",
- get={'username': user, 'password': self.password}).strip()
+ get={'username': user, 'password': self.password},
+ decode=True)
if "wrong username" in authcode:
self.wrongPassword()