summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-09 01:52:24 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-09 01:52:24 +0200
commitda1180bc2d428ad52fbbecda8473fc1fb7267438 (patch)
tree1565947cf7b67e21e28f0c27df2f9dd3e91bb1ca /module/plugins/hooks
parentNew plugin: TNTVillageScambioeticoOrg (diff)
downloadpyload-da1180bc2d428ad52fbbecda8473fc1fb7267438.tar.xz
[SimpleHoster] Improve checkFile
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/AntiVirus.py2
-rw-r--r--module/plugins/hooks/Captcha9Kw.py2
-rw-r--r--module/plugins/hooks/ExtractArchive.py2
-rw-r--r--module/plugins/hooks/RestartFailed.py2
-rw-r--r--module/plugins/hooks/UpdateManager.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index 0b5eb1410..09872650f 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -91,7 +91,7 @@ class AntiVirus(Hook):
shutil.move(file, self.getConfig('quardir'))
else:
- self.logDebug(_("Successfully moved file to trash"))
+ self.logDebug("Successfully moved file to trash")
elif action == "Quarantine":
pyfile.setCustomStatus(_("file moving"))
diff --git a/module/plugins/hooks/Captcha9Kw.py b/module/plugins/hooks/Captcha9Kw.py
index 7f37c225e..18a078bdb 100644
--- a/module/plugins/hooks/Captcha9Kw.py
+++ b/module/plugins/hooks/Captcha9Kw.py
@@ -139,7 +139,7 @@ class Captcha9Kw(Hook):
self.logError(_("Bad upload: %s") % res)
return
- self.logDebug(_("NewCaptchaID ticket: %s") % res, task.captchaFile)
+ self.logDebug("NewCaptchaID ticket: %s" % res, task.captchaFile)
task.data["ticket"] = res
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 67ebfc49c..f311d5b49 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -482,7 +482,7 @@ class ExtractArchive(Hook):
self.logWarning(_("Unable to move %s to trash: %s") % (os.path.basename(f), e.message))
else:
- self.logDebug(_("Successfully moved %s to trash") % os.path.basename(f))
+ self.logDebug("Successfully moved %s to trash" % os.path.basename(f))
self.logInfo(name, _("Extracting finished"))
extracted_files = archive.files or archive.list()
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py
index 837d903b2..c29b9cee4 100644
--- a/module/plugins/hooks/RestartFailed.py
+++ b/module/plugins/hooks/RestartFailed.py
@@ -30,7 +30,7 @@ class RestartFailed(Hook):
def periodical(self):
- self.logDebug(_("Restart failed downloads"))
+ self.logDebug("Restart failed downloads")
self.core.api.restartFailed()
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index 249c799d8..f8eb25bc1 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -39,7 +39,7 @@ class UpdateManager(Hook):
("reloadplugins", "bool", "Monitor plugin code changes in debug mode", True ),
("nodebugupdate", "bool", "Don't update plugins in debug mode" , False)]
- __description__ = """ Check for updates """
+ __description__ = """Check for updates"""
__license__ = "GPLv3"
__authors__ = [("Walter Purcaro", "vuolter@gmail.com")]