diff options
-rw-r--r-- | module/plugins/accounts/PremiumizeMe.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py index 7d061ec2d..01ac36ab6 100644 --- a/module/plugins/accounts/PremiumizeMe.py +++ b/module/plugins/accounts/PremiumizeMe.py @@ -1,20 +1,27 @@ # -*- coding: utf-8 -*- -from module.plugins.Account import Account +import pycurl from module.common.json_layer import json_loads +from module.plugins.Account import Account class PremiumizeMe(Account): __name__ = "PremiumizeMe" __type__ = "account" - __version__ = "0.13" + __version__ = "0.14" __description__ = """Premiumize.me account plugin""" __license__ = "GPLv3" __authors__ = [("Florian Franzen", "FlorianFranzen@gmail.com")] + def getAccountRequest(self, user=None): + req = super(PremiumizeMe, self).getAccountRequest(user) + req.http.c.setopt(pycurl.CURLOPT_SSL_CIPHER_LIST, "TLSv1") + return req + + def loadAccountInfo(self, user, req): # Get user data from premiumize.me status = self.getAccountStatus(user, req) |