diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/ThreadManager.py | 2 | ||||
-rw-r--r-- | module/gui/Overview.py | 4 | ||||
-rw-r--r-- | module/plugins/PluginManager.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/RapidshareCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/Xdcc.py | 3 |
6 files changed, 6 insertions, 9 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py index 8e92c1a6e..f3da9a713 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -130,7 +130,7 @@ class ThreadManager: self.core.hookManager.beforeReconnecting(ip) - self.log.debug(_("Old IP: %s") % ip) + self.log.debug("Old IP: %s" % ip) try: reconn = Popen(self.core.config['reconnect']['method'], bufsize=-1, shell=True)#, stdout=subprocess.PIPE) diff --git a/module/gui/Overview.py b/module/gui/Overview.py index c4a2e7947..5d9f1e49e 100644 --- a/module/gui/Overview.py +++ b/module/gui/Overview.py @@ -124,9 +124,9 @@ class OverviewDelegate(QItemDelegate): if seconds <= 0: return "" hours, seconds = divmod(seconds, 3600) minutes, seconds = divmod(seconds, 60) - return _("ETA: %.2i:%.2i:%.2i") % (hours, minutes, seconds) + return _("ETA: ") + "%.2i:%.2i:%.2i" % (hours, minutes, seconds) - statusline = QString(_("Parts: %s/%s" % (partsf, parts))) + statusline = QString(_("Parts: ") + "%s/%s" % (partsf, parts)) if partsf == parts: speedline = _("Finished") else: diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py index bf9610463..1e42e5a63 100644 --- a/module/plugins/PluginManager.py +++ b/module/plugins/PluginManager.py @@ -80,7 +80,7 @@ class PluginManager(): self.accountPlugins = self.parse(_("Account"), "accounts", create=True) self.hookPlugins = self.parse(_("Hook"), "hooks") - self.log.debug(_("created index of plugins")) + self.log.debug("created index of plugins") def parse(self, typ, folder, create=False, pattern=False, home={}): """ diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index 7d8e92462..2f6ce4739 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -136,7 +136,7 @@ class RapidshareCom(Hoster): def handlePremium(self): info = self.account.getAccountInfo(self.user, True) - self.log.debug(_("%(name)s: Use Premium Account (%(left)sGB left)") % { "name" : self.__name__, "left": info["trafficleft"]/1000/1000 }) + self.log.debug("%(name)s: Use Premium Account (%(left)sGB left)" % { "name" : self.__name__, "left": info["trafficleft"]/1000/1000 }) if self.api_data["size"] / 1024 > info["trafficleft"]: self.log.info(_("%s: Not enough traffic left" % self.__name__)) self.account.empty() diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 79379a0a7..02f6b529c 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -54,7 +54,7 @@ class UploadedTo(Hoster): if self.account: info = self.account.getAccountInfo(self.user, True) - self.log.debug(_("%(name)s: Use Premium Account (%(left)sGB left)") % {"name" :self.__name__, "left" : info["trafficleft"]/1024/1024}) + self.log.debug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name" :self.__name__, "left" : info["trafficleft"]/1024/1024}) if self.api_data["size"]/1024 > info["trafficleft"]: self.log.info(_("%s: Not enough traffic left" % self.__name__)) self.account.empty() diff --git a/module/plugins/hoster/Xdcc.py b/module/plugins/hoster/Xdcc.py index 3e68c7289..fe194abe1 100644 --- a/module/plugins/hoster/Xdcc.py +++ b/module/plugins/hoster/Xdcc.py @@ -17,8 +17,6 @@ @author: jeix
"""
-import logging
-from os.path import exists
from os.path import join
from os.path import exists
from os import makedirs
@@ -52,7 +50,6 @@ class Xdcc(Hoster): def process(self, pyfile):
self.pyfile = pyfile
- self.req = pyfile.m.core.requestFactory.getRequest(self.__name__, type="XDCC")
for i in range(0,3):
try:
self.doDownload(pyfile.url)
|