summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:51:21 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:51:21 +0100
commitca08d2dacde1685807bfdb4c876e070af2032f25 (patch)
treef8887f3197e1c6b339b0bba75bbeb91e4b23a32c
parent[RelinkUs] Improve unlockPasswordProtection (diff)
downloadpyload-ca08d2dacde1685807bfdb4c876e070af2032f25.tar.xz
[RehostTo] Fixup
-rw-r--r--module/plugins/hoster/RehostTo.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py
index 2971a6781..8cfe833fd 100644
--- a/module/plugins/hoster/RehostTo.py
+++ b/module/plugins/hoster/RehostTo.py
@@ -8,7 +8,7 @@ from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
class RehostTo(MultiHoster):
__name__ = "RehostTo"
__type__ = "hoster"
- __version__ = "0.16"
+ __version__ = "0.17"
__pattern__ = r'https?://.*rehost\.to\..+'
@@ -21,21 +21,14 @@ class RehostTo(MultiHoster):
return unquote(url.rsplit("/", 1)[1])
- def setup(self):
- self.chunkLimit = 1
- self.resumeDownload = True
-
-
def handlePremium(self):
- data = self.account.getAccountInfo(self.user)
+ data = self.account.getAccountInfo(self.user)
long_ses = data['long_ses']
- #raise timeout to 2min
- self.req.setOption("timeout", 120)
-
- self.link = True
self.download("http://rehost.to/process_download.php",
- get={'user': "cookie", 'pass': long_ses, 'dl': quote(self.pyfile.url, "")},
+ get={'user': "cookie",
+ 'pass': long_ses,
+ 'dl' : self.pyfile.url},
disposition=True)