diff options
Diffstat (limited to 'module/plugins/hoster/RehostTo.py')
-rw-r--r-- | module/plugins/hoster/RehostTo.py | 12 |
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) |