From 10fe56a70bef797ec03c044b4f026985860df9d6 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 2 Jun 2015 05:45:46 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1442 --- module/plugins/accounts/PremiumizeMe.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts') 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) -- cgit v1.2.3