summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar marley2013 <marley@over-load.me> 2015-01-03 19:09:30 +0100
committerGravatar marley2013 <marley@over-load.me> 2015-01-03 19:09:30 +0100
commitf2e2201a3dec0d801c406a8e2bd9f06a126b0512 (patch)
treec6b86fd0ed3689f2eebf7246f463d79a07e9f72d /module/plugins
parent[MultiHook] Unload if related multihoster account is not available (diff)
downloadpyload-f2e2201a3dec0d801c406a8e2bd9f06a126b0512.tar.xz
Update OverLoadMe.py
Fixed https
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/accounts/OverLoadMe.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/accounts/OverLoadMe.py b/module/plugins/accounts/OverLoadMe.py
index fb9732986..e06fc2023 100644
--- a/module/plugins/accounts/OverLoadMe.py
+++ b/module/plugins/accounts/OverLoadMe.py
@@ -7,7 +7,7 @@ from module.common.json_layer import json_loads
class OverLoadMe(Account):
__name__ = "OverLoadMe"
__type__ = "account"
- __version__ = "0.01"
+ __version__ = "0.02"
__description__ = """Over-Load.me account plugin"""
__license__ = "GPLv3"
@@ -16,7 +16,8 @@ class OverLoadMe(Account):
def loadAccountInfo(self, user, req):
data = self.getAccountData(user)
- html = req.load("https://api.over-load.me/account.php", get={"user": user, "auth": data['password']}).strip()
+ https = "https" if self.getConfig("https") else "http"
+ html = req.load(https + "://api.over-load.me/account.php", get={"user": user, "auth": data['password']}).strip()
data = json_loads(html)
# Check for premium
@@ -28,7 +29,8 @@ class OverLoadMe(Account):
def login(self, user, data, req):
- jsondata = req.load("https://api.over-load.me/account.php",
+ https = "https" if self.getConfig("https") else "http"
+ jsondata = req.load(https + "://api.over-load.me/account.php",
get={"user": user, "auth": data['password']}).strip()
data = json_loads(jsondata)