summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/RehostTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/RehostTo.py')
-rw-r--r--pyload/plugins/hoster/RehostTo.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/pyload/plugins/hoster/RehostTo.py b/pyload/plugins/hoster/RehostTo.py
index 0e6af0edb..08c43ad16 100644
--- a/pyload/plugins/hoster/RehostTo.py
+++ b/pyload/plugins/hoster/RehostTo.py
@@ -6,27 +6,30 @@ from pyload.plugins.base.Hoster import Hoster
class RehostTo(Hoster):
- __name__ = "RehostTo"
- __type__ = "hoster"
+ __name__ = "RehostTo"
+ __type__ = "hoster"
__version__ = "0.13"
- __pattern__ = r'https?://.*rehost.to\..*'
+ __pattern__ = r'https?://.*rehost\.to\..*'
__description__ = """Rehost.com hoster plugin"""
- __authors__ = [("RaNaN", "RaNaN@pyload.org")]
+ __license__ = "GPLv3"
+ __authors__ = [("RaNaN", "RaNaN@pyload.org")]
def getFilename(self, url):
return unquote(url.rsplit("/", 1)[1])
+
def setup(self):
self.chunkLimit = 1
self.resumeDownload = True
+
def process(self, pyfile):
if not self.account:
self.logError(_("Please enter your %s account or deactivate this plugin") % "rehost.to")
- self.fail("No rehost.to account provided")
+ self.fail(_("No rehost.to account provided"))
data = self.account.getAccountInfo(self.user)
long_ses = data['long_ses']