summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExtractArchive.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-29 08:21:04 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-29 08:21:04 +0200
commit5a2781c923ecd13f3e671366fa6fa311d92d8547 (patch)
treef65fe11c0ea7e2122bb91ef7efd45ab71320353b /module/plugins/hooks/ExtractArchive.py
parentFix https://github.com/pyload/pyload/issues/1587 (diff)
downloadpyload-5a2781c923ecd13f3e671366fa6fa311d92d8547.tar.xz
Fix https://github.com/pyload/pyload/issues/1586
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r--module/plugins/hooks/ExtractArchive.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index ffcb6e738..98dea58ca 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -112,7 +112,7 @@ class ArchiveQueue(object):
class ExtractArchive(Addon):
__name__ = "ExtractArchive"
__type__ = "hook"
- __version__ = "1.47"
+ __version__ = "1.48"
__status__ = "testing"
__config__ = [("activated" , "bool" , "Activated" , True ),
@@ -490,13 +490,15 @@ class ExtractArchive(Addon):
send2trash.send2trash(file)
except NameError:
- self.log_warning(_("Unable to move %s to trash: Send2Trash lib not found") % os.path.basename(f))
+ self.log_warning(_("Unable to move %s to trash") % os.path.basename(f),
+ _("Send2Trash lib not found"))
except Exception, e:
- self.log_warning(_("Unable to move %s to trash: %s") % (os.path.basename(f), e.message))
+ self.log_warning(_("Unable to move %s to trash") % os.path.basename(f),
+ e.message)
else:
- self.log_debug("Successfully moved %s to trash" % os.path.basename(f))
+ self.log_info(_("Moved %s to trash") % os.path.basename(f))
self.log_info(name, _("Extracting finished"))
extracted_files = archive.files or archive.list()