summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RehostTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 20:05:07 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 20:05:07 +0200
commitec6e5dc7fcdcefee10e37d22473c9accae1104cf (patch)
treed19824c0223b083d5b4256530443165cfabb7a04 /module/plugins/accounts/RehostTo.py
parentMerge pull request #1850 from chaosblog/patch-2 (diff)
downloadpyload-ec6e5dc7fcdcefee10e37d22473c9accae1104cf.tar.xz
Account class completely rewritten + plugins updated
Diffstat (limited to 'module/plugins/accounts/RehostTo.py')
-rw-r--r--module/plugins/accounts/RehostTo.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/module/plugins/accounts/RehostTo.py b/module/plugins/accounts/RehostTo.py
index 50b64bff8..9406f22af 100644
--- a/module/plugins/accounts/RehostTo.py
+++ b/module/plugins/accounts/RehostTo.py
@@ -6,7 +6,7 @@ from module.plugins.internal.Account import Account
class RehostTo(Account):
__name__ = "RehostTo"
__type__ = "account"
- __version__ = "0.19"
+ __version__ = "0.20"
__status__ = "testing"
__description__ = """Rehost.to account plugin"""
@@ -14,7 +14,14 @@ class RehostTo(Account):
__authors__ = [("RaNaN", "RaNaN@pyload.org")]
- def grab_info(self, user, password, data, req):
+ def grab_hosters(self, user, password, data):
+ html = self.load("http://rehost.to/api.php",
+ get={'cmd' : "get_supported_och_dl",
+ 'long_ses': data['session']})
+ return [x.strip() for x in html.replace("\"", "").split(",")]
+
+
+ def grab_info(self, user, password, data):
premium = False
trafficleft = None
validuntil = -1
@@ -47,7 +54,7 @@ class RehostTo(Account):
'session' : session}
- def login(self, user, password, data, req):
+ def signin(self, user, password, data):
html = self.load("https://rehost.to/api.php",
get={'cmd': "login",
'user': user,