summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-16 17:13:46 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-16 17:13:46 +0100
commitf89a0fcfbcca01067175ba7a67c14eb95bd60d6f (patch)
tree8de765342ec8e967e5e8b2b4ee453f3239d85032 /pyLoadCore.py
parentmerged (diff)
downloadpyload-f89a0fcfbcca01067175ba7a67c14eb95bd60d6f.tar.xz
gui server status
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 72f938c37..3d399a0c2 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -129,7 +129,7 @@ class Core(object):
script_folders = ['scripts/download_preparing/', 'scripts/download_finished/', 'scripts/package_finished/', 'scripts/reconnected/']
self.check_file(script_folders, _("folders for scripts"), True)
if self.config['ssl']['activated']:
- self.check_install("OpenSSL", "OpenSLL for secure connection", True)
+ self.check_install("OpenSSL", "OpenSSL for secure connection", True)
self.check_file(self.config['ssl']['cert'], _("ssl certificate"), False, True)
self.check_file(self.config['ssl']['key'], _("ssl key"), False, True)
@@ -155,6 +155,8 @@ class Core(object):
self.logger.info(_("Downloadtime: %s") % self.server_methods.is_time_download()) # debug only
#read url list @mkaay: pid, lid?
+ # pid = package id
+ # lid = link/file id
linkFile = self.config['general']['link_file']
pid = self.file_list.packager.addNewPackage(package_name=linkFile)
lid = self.file_list.collector.addLink(linkFile)
@@ -195,14 +197,9 @@ class Core(object):
def init_logger(self, level):
-
-
console = logging.StreamHandler(stdout)
-
frm = logging.Formatter("%(asctime)s: %(levelname)-8s %(message)s", "%d.%m.%Y %H:%M:%S")
-
console.setFormatter(frm)
-
self.logger = logging.getLogger("log") # settable in config
if self.config['log']['file_log']:
@@ -378,7 +375,7 @@ class ServerMethods():
def status_server(self):
status = {}
status['pause'] = self.core.thread_list.pause
- status['queue'] = len(self.core.file_list.data['queue'])
+ status['queue'] = self.core.file_list.countDownloads()
status['speed'] = 0
for pyfile in self.core.thread_list.py_downloading: