diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 00:27:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 00:27:18 +0100 |
commit | 67587fbe0335cacfde28a86ba729b9d567ce1da7 (patch) | |
tree | 090ea3a41894437ce619fe06304508479ace6ab6 /module/plugins/hoster/RehostTo.py | |
parent | Plugin code cosmetics (2) (diff) | |
download | pyload-67587fbe0335cacfde28a86ba729b9d567ce1da7.tar.xz |
Plugin code cosmetics (3)
Diffstat (limited to 'module/plugins/hoster/RehostTo.py')
-rw-r--r-- | module/plugins/hoster/RehostTo.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py index 07755cb9c..7cde01025 100644 --- a/module/plugins/hoster/RehostTo.py +++ b/module/plugins/hoster/RehostTo.py @@ -35,9 +35,10 @@ class RehostTo(Hoster): long_ses = data['long_ses'] self.logDebug("Rehost.to: Old URL: %s" % pyfile.url) - new_url = "http://rehost.to/process_download.php?user=cookie&pass=%s&dl=%s" % (long_ses, quote(pyfile.url, "")) #raise timeout to 2min self.req.setOption("timeout", 120) - self.download(new_url, disposition=True) + self.download("http://rehost.to/process_download.php", + get={'user': "cookie", 'pass': long_ses, 'dl': quote(pyfile.url, "")}, + disposition=True) |