diff --git a/oml/server.py b/oml/server.py index b5c9682..0df3db1 100644 --- a/oml/server.py +++ b/oml/server.py @@ -26,6 +26,8 @@ import websocket import logging +logger = logging.getLogger('oml') + class MainHandler(OMLHandler): def get(self, path): @@ -111,6 +113,7 @@ def run(): host = settings.server['address'] url = 'http://%s:%s/' % (host, settings.server['port']) print('open browser at %s' % url) + logger.debug('Starting OML %s at %s', settings.VERSION, url) def shutdown(): if state.downloads: diff --git a/static/js/transfersDialog.js b/static/js/transfersDialog.js index afa25bb..b204322 100644 --- a/static/js/transfersDialog.js +++ b/static/js/transfersDialog.js @@ -121,8 +121,11 @@ oml.ui.transfersDialog = function() { }); oml.bindEvent({ - transfer: Ox.throttle(function() { - $list.reloadList(true); + transfer: Ox.throttle(function(data) { + var current = $list.value(data.id); + if (!Ox.isEmpty(current) && current.progress != data.progress) { + $list.value(data.id, 'progress', data.progress); + } }, 1000) });