summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-03 21:21:37 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-03 21:21:37 +0100
commitba982090ec1c7e5cc1c918232831634378934ef5 (patch)
tree7d54f94d6d05e1259fb3491049a73a850caa756b /module/plugins
parentMerge pull request #1004 from marley2013/patch-5 (diff)
parentUpdate OverLoadMe.py (diff)
downloadpyload-ba982090ec1c7e5cc1c918232831634378934ef5.tar.xz
Merge pull request #1005 from marley2013/patch-6
[OverLoadMe] Https support in hoster plugin
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/OverLoadMe.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/OverLoadMe.py b/module/plugins/hoster/OverLoadMe.py
index f7c068b58..7cd439e15 100644
--- a/module/plugins/hoster/OverLoadMe.py
+++ b/module/plugins/hoster/OverLoadMe.py
@@ -13,7 +13,7 @@ from module.utils import parseFileSize
class OverLoadMe(MultiHoster):
__name__ = "OverLoadMe"
__type__ = "hoster"
- __version__ = "0.06"
+ __version__ = "0.07"
__pattern__ = r'https?://.*overload\.me/.+'
@@ -38,8 +38,8 @@ class OverLoadMe(MultiHoster):
def handlePremium(self):
data = self.account.getAccountData(self.user)
-
- page = self.load("https://api.over-load.me/getdownload.php",
+ https = "https" if self.getConfig("https") else "http"
+ page = self.load(https + "://api.over-load.me/getdownload.php",
get={"auth": data['password'], "link": self.pyfile.url})
data = json_loads(page)