summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 94ffd90a4..8dc725ca7 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -62,6 +62,7 @@ from module.RequestFactory import RequestFactory
from module.ThreadManager import ThreadManager
import module.remote.SecureXMLRPCServer as Server
from module.web.ServerThread import WebServer
+from module.FileDatabase import PyFile
class Core(object):
""" pyLoad Core """
@@ -397,6 +398,8 @@ class ServerMethods():
""" gives status about all files currently processed """
downloads = []
for pyfile in [x.active for x in self.core.threadManager.threads + self.core.threadManager.localThreads if x.active]:
+ if not isinstance(pyfile, PyFile):
+ continue
download = {}
download['id'] = pyfile.id
download['name'] = pyfile.name