From 3a82d5f45ffed16d654220efa92ef6b75ea3163b Mon Sep 17 00:00:00 2001 From: Armin Date: Sun, 12 Apr 2015 18:34:55 +0200 Subject: import fixes + code-cleanup --- pyload/manager/thread/Decrypter.py | 3 +-- pyload/manager/thread/Download.py | 3 +-- pyload/manager/thread/Info.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'pyload/manager') diff --git a/pyload/manager/thread/Decrypter.py b/pyload/manager/thread/Decrypter.py index 7fcf93e4c..12806163c 100644 --- a/pyload/manager/thread/Decrypter.py +++ b/pyload/manager/thread/Decrypter.py @@ -48,8 +48,7 @@ class DecrypterThread(PluginThread): pyfile.plugin.preprocessing(self) except NotImplementedError: - self.m.core.log.error( - _("Plugin %s is missing a function.") % pyfile.pluginname) + self.m.core.log.error(_("Plugin %s is missing a function.") % pyfile.pluginname) return except Fail, e: diff --git a/pyload/manager/thread/Download.py b/pyload/manager/thread/Download.py index d4006d307..37fe844ec 100644 --- a/pyload/manager/thread/Download.py +++ b/pyload/manager/thread/Download.py @@ -166,8 +166,7 @@ class DownloadThread(PluginThread): except SkipDownload, e: pyfile.setStatus("skipped") - self.m.core.log.info( - _("Download skipped: %(name)s due to %(plugin)s") % {"name": pyfile.name, "plugin": e.message}) + self.m.core.log.info(_("Download skipped: %(name)s due to %(plugin)s") % {"name": pyfile.name, "plugin": e.message}) self.clean(pyfile) diff --git a/pyload/manager/thread/Info.py b/pyload/manager/thread/Info.py index af958fa74..edc9489e9 100644 --- a/pyload/manager/thread/Info.py +++ b/pyload/manager/thread/Info.py @@ -45,7 +45,7 @@ class InfoThread(PluginThread): for url, plugintype, pluginname in self.data: # filter out container plugins if plugintype == 'container': - container.extend([(name, url) for url in plugins[name]]) + container.appen((pluginname, url)) else: if (plugintype, pluginname) in plugins: plugins[(plugintype, pluginname)].append(url) -- cgit v1.2.3