diff --git a/server.py b/server.py index d64e383..e53aa84 100644 --- a/server.py +++ b/server.py @@ -133,8 +133,8 @@ def on_connect(): emit('init_home', app.get_home(session['dz'])) emit('init_charts', app.get_charts(session['dz'])) - if not app.isDeezerAvailable: - emit('deezerNotAvailable') + if app.updateAvailable: emit('updateAvailable') + if not app.isDeezerAvailable: emit('deezerNotAvailable') @socketio.on('get_home_data') def get_home_data(): @@ -343,7 +343,12 @@ def run_server(host="127.0.0.1", port=6595, portable=None, guiWindow=None, serve print("Server-wide ARL enabled.") arl = app.getConfigArl() print("Starting server at http://" + host + ":" + str(port)) - socketio.run(server, host=host, port=port) + try: + socketio.run(server, host=host, port=port) + except UnicodeDecodeError as e: + print(str(e)) + print("A workaround for this issue is to remove all non roman characters from the computer name") + print("More info here: https://codeberg.org/RemixDev/deemix-pyweb/issues/28") def shutdown_handler(signalnum, frame): shutdown() diff --git a/webui b/webui index c1c585d..be5eb52 160000 --- a/webui +++ b/webui @@ -1 +1 @@ -Subproject commit c1c585de3c9b76c89a8b288bf3891c431a9ea0f4 +Subproject commit be5eb5244611002eb7c270b833591931042a5a84