summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-02 19:42:46 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-02 19:42:46 +0200
commitbea1e834b879e208867be1144d18b3037d909b67 (patch)
tree8ed71afafa19ac1ce9e085c392d0d864ab860cc4 /module
parent[FilerNet] Account fixup (diff)
downloadpyload-bea1e834b879e208867be1144d18b3037d909b67.tar.xz
[PremiumizeMe] Account fixup
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/PremiumizeMe.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py
index abd9fe14c..da31d93ee 100644
--- a/module/plugins/accounts/PremiumizeMe.py
+++ b/module/plugins/accounts/PremiumizeMe.py
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
-import pycurl
-
from module.common.json_layer import json_loads
from module.plugins.Account import Account
@@ -9,20 +7,13 @@ from module.plugins.Account import Account
class PremiumizeMe(Account):
__name__ = "PremiumizeMe"
__type__ = "account"
- __version__ = "0.15"
+ __version__ = "0.16"
__description__ = """Premiumize.me account plugin"""
__license__ = "GPLv3"
__authors__ = [("Florian Franzen", "FlorianFranzen@gmail.com")]
- def getAccountRequest(self, user=None):
- req = super(PremiumizeMe, self).getAccountRequest(user)
- if req:
- 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)
@@ -50,7 +41,7 @@ class PremiumizeMe(Account):
def getAccountStatus(self, user, req):
# Use premiumize.me API v1 (see https://secure.premiumize.me/?show=api)
# to retrieve account info and return the parsed json answer
- answer = req.load("https://api.premiumize.me/pm-api/v1.php",
+ answer = req.load("http://api.premiumize.me/pm-api/v1.php",
get={'method' : "accountstatus",
'params[login]': user,
'params[pass]' : self.getAccountData(user)['password']})