log version
This commit is contained in:
parent
193671be5c
commit
ce47b8a64d
2 changed files with 8 additions and 2 deletions
|
@ -26,6 +26,8 @@ import websocket
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
logger = logging.getLogger('oml')
|
||||||
|
|
||||||
class MainHandler(OMLHandler):
|
class MainHandler(OMLHandler):
|
||||||
|
|
||||||
def get(self, path):
|
def get(self, path):
|
||||||
|
@ -111,6 +113,7 @@ def run():
|
||||||
host = settings.server['address']
|
host = settings.server['address']
|
||||||
url = 'http://%s:%s/' % (host, settings.server['port'])
|
url = 'http://%s:%s/' % (host, settings.server['port'])
|
||||||
print('open browser at %s' % url)
|
print('open browser at %s' % url)
|
||||||
|
logger.debug('Starting OML %s at %s', settings.VERSION, url)
|
||||||
|
|
||||||
def shutdown():
|
def shutdown():
|
||||||
if state.downloads:
|
if state.downloads:
|
||||||
|
|
|
@ -121,8 +121,11 @@ oml.ui.transfersDialog = function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
oml.bindEvent({
|
oml.bindEvent({
|
||||||
transfer: Ox.throttle(function() {
|
transfer: Ox.throttle(function(data) {
|
||||||
$list.reloadList(true);
|
var current = $list.value(data.id);
|
||||||
|
if (!Ox.isEmpty(current) && current.progress != data.progress) {
|
||||||
|
$list.value(data.id, 'progress', data.progress);
|
||||||
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue