summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-14 17:55:37 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-14 17:55:37 +0200
commit3943cb7621189f1dc9cd2de77b318da513149803 (patch)
tree9b5314c98bd0718afc68669961236c9fad2cc542
parentfix: assignJob (diff)
downloadpyload-3943cb7621189f1dc9cd2de77b318da513149803.tar.xz
fix typo
-rw-r--r--pyload/manager/thread/Download.py1
-rw-r--r--pyload/manager/thread/Plugin.py3
-rw-r--r--pyload/webui/app/pyloadweb.py2
3 files changed, 4 insertions, 2 deletions
diff --git a/pyload/manager/thread/Download.py b/pyload/manager/thread/Download.py
index fc76b655e..21db61ca4 100644
--- a/pyload/manager/thread/Download.py
+++ b/pyload/manager/thread/Download.py
@@ -39,6 +39,7 @@ class DownloadThread(PluginThread):
while True:
del pyfile
+ self.active = False # sets the thread inactive when it is ready to get next job
self.active = self.queue.get()
pyfile = self.active
diff --git a/pyload/manager/thread/Plugin.py b/pyload/manager/thread/Plugin.py
index 155e687d4..658ce4550 100644
--- a/pyload/manager/thread/Plugin.py
+++ b/pyload/manager/thread/Plugin.py
@@ -20,6 +20,7 @@ from pyload.utils.packagetools import parseNames
from pyload.utils import fs_join
from pyload.api import OnlineStatus
+
class PluginThread(Thread):
"""abstract base class for thread types"""
@@ -127,5 +128,5 @@ class PluginThread(Thread):
def clean(self, pyfile):
""" set thread unactive and release pyfile """
- self.active = False
+ self.active = True #release pyfile but lets the thread active
pyfile.release()
diff --git a/pyload/webui/app/pyloadweb.py b/pyload/webui/app/pyloadweb.py
index f04c6906b..cc2185fd4 100644
--- a/pyload/webui/app/pyloadweb.py
+++ b/pyload/webui/app/pyloadweb.py
@@ -256,7 +256,7 @@ def config():
name, none, type = desc.partition("_")
if type in PYLOAD.core.pluginManager.TYPES:
- if name != last_name or len([a for a, b in plugin.iteritems() if b.description.startswith(name + "_")]) > 1:
+ if name == last_name or len([a for a, b in plugin.iteritems() if b.description.startswith(name + "_")]) > 1:
desc = name + " (" + type.title() + ")"
else:
desc = name