summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RehostTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2013-07-17 03:20:29 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2013-07-17 03:20:29 +0200
commit5d6b8fdb79eb10b3b96cb265860d0d02d112af60 (patch)
tree4b11a41a91eb36b9f3cf5492392f4871bb733f43 /module/plugins/hoster/RehostTo.py
parentNew crypter plugin requested in #190 (diff)
downloadpyload-5d6b8fdb79eb10b3b96cb265860d0d02d112af60.tar.xz
fixed log api call for several plugins
Diffstat (limited to 'module/plugins/hoster/RehostTo.py')
-rw-r--r--module/plugins/hoster/RehostTo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py
index 141dcb8c8..e306823a0 100644
--- a/module/plugins/hoster/RehostTo.py
+++ b/module/plugins/hoster/RehostTo.py
@@ -6,7 +6,7 @@ from module.plugins.Hoster import Hoster
class RehostTo(Hoster):
__name__ = "RehostTo"
- __version__ = "0.11"
+ __version__ = "0.12"
__type__ = "hoster"
__pattern__ = r"https?://.*rehost.to\..*"
__description__ = """rehost.com hoster plugin"""
@@ -22,13 +22,13 @@ class RehostTo(Hoster):
def process(self, pyfile):
if not self.account:
- self.log.error(_("Please enter your rehost.to account or deactivate this plugin"))
+ self.logError(_("Please enter your rehost.to account or deactivate this plugin"))
self.fail("No rehost.to account provided")
data = self.account.getAccountInfo(self.user)
long_ses = data["long_ses"]
- self.log.debug("Rehost.to: Old URL: %s" % pyfile.url)
+ 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