Setting output stays on config page & add favicon

This commit is contained in:
Matthew Stratford 2021-03-22 00:45:46 +00:00
parent 5233aacdf9
commit 5c85466255
2 changed files with 8 additions and 6 deletions

View file

@ -260,7 +260,7 @@ def seek(channel: int, pos: float):
@app.route("/player/<int:channel>/output/<name>") @app.route("/player/<int:channel>/output/<name>")
def output(channel: int, name: Optional[str]): def output(channel: int, name: Optional[str]):
channel_to_q[channel].put("UI:OUTPUT:" + str(name)) channel_to_q[channel].put("UI:OUTPUT:" + str(name))
return ui_status() return ui_config()
@app.route("/player/<int:channel>/autoadvance/<int:state>") @app.route("/player/<int:channel>/autoadvance/<int:state>")
@ -443,11 +443,6 @@ def clear_all_channels():
return ui_status() return ui_status()
@app.route('/static/<path:path>')
def send_static(path: str):
return send_from_directory('ui-static', path)
@app.route("/logs") @app.route("/logs")
def list_logs(): def list_logs():
data = { data = {
@ -469,6 +464,13 @@ def send_logs(path):
l.close() l.close()
return render_template('log.html', data=data) return render_template('log.html', data=data)
@app.route('/favicon.ico')
def serve_favicon():
return send_from_directory('ui-static', 'favicon.ico')
@app.route('/static/<path:path>')
def serve_static(path: str):
return send_from_directory('ui-static', path)
async def startServer(): async def startServer():
process_title="startServer" process_title="startServer"

BIN
ui-static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB