summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RehostTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:35:51 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:35:51 +0100
commitfd105f8e51768ec1943cda2375bdfdbe5b0a3951 (patch)
treeccbdbe3cd23c606e8102f11ae4e0722f7e7a3227 /module/plugins/hoster/RehostTo.py
parent"New Year" Update: hook plugins (diff)
downloadpyload-fd105f8e51768ec1943cda2375bdfdbe5b0a3951.tar.xz
"New Year" Update: hoster plugins
Diffstat (limited to 'module/plugins/hoster/RehostTo.py')
-rw-r--r--module/plugins/hoster/RehostTo.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py
index 96443d5f5..f87c7f3ff 100644
--- a/module/plugins/hoster/RehostTo.py
+++ b/module/plugins/hoster/RehostTo.py
@@ -8,26 +8,22 @@ from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
class RehostTo(MultiHoster):
__name__ = "RehostTo"
__type__ = "hoster"
- __version__ = "0.18"
+ __version__ = "0.19"
__pattern__ = r'https?://.*rehost\.to\..+'
- __description__ = """Rehost.com hoster plugin"""
+ __description__ = """Rehost.com multi-hoster plugin"""
__license__ = "GPLv3"
__authors__ = [("RaNaN", "RaNaN@pyload.org")]
- def getFilename(self, url):
- return unquote(url.rsplit("/", 1)[1])
-
-
- def handlePremium(self):
+ def handlePremium(self, pyfile):
data = self.account.getAccountData(self.user)
self.download("http://rehost.to/process_download.php",
get={'user': "cookie",
'pass': data['long_ses'],
- 'dl' : self.pyfile.url},
+ 'dl' : pyfile.url},
disposition=True)