summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)