summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/RehostTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 15:55:06 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 15:55:06 +0100
commitb617325d793a55d25f4812b1c6a7b9e656b9c73f (patch)
treeced8bd24e16dca66703b9370a847860de3aecbe2 /module/plugins/hooks/RehostTo.py
parent[MegaCoNz] Fix https://github.com/pyload/pyload/issues/1017 (thx valadrem) (diff)
downloadpyload-b617325d793a55d25f4812b1c6a7b9e656b9c73f.tar.xz
[RehostTo] Fix https://github.com/pyload/pyload/issues/1009
Diffstat (limited to 'module/plugins/hooks/RehostTo.py')
-rw-r--r--module/plugins/hooks/RehostTo.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/module/plugins/hooks/RehostTo.py b/module/plugins/hooks/RehostTo.py
index 81cb26f2f..d2383cf98 100644
--- a/module/plugins/hooks/RehostTo.py
+++ b/module/plugins/hooks/RehostTo.py
@@ -6,7 +6,7 @@ from module.plugins.internal.MultiHook import MultiHook
class RehostTo(MultiHook):
__name__ = "RehostTo"
__type__ = "hook"
- __version__ = "0.47"
+ __version__ = "0.48"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
@@ -22,15 +22,8 @@ class RehostTo(MultiHook):
def getHosters(self):
+ user, data = self.account.selectAccount()
page = self.getURL("http://rehost.to/api.php",
- get={'cmd': "get_supported_och_dl", 'long_ses': self.long_ses})
+ get={'cmd' : "get_supported_och_dl",
+ 'long_ses': self.getAccountData(user)['session']})
return [x.strip() for x in page.replace("\"", "").split(",")]
-
-
- def coreReady(self):
- super(RehostTo, self).coreReady()
-
- user, data = self.account.selectAccount()
-
- self.ses = data['ses']
- self.long_ses = data['long_ses']