Console output borked on windows, fixed
This commit is contained in:
parent
1d99945f44
commit
829f7b26d1
1 changed files with 8 additions and 5 deletions
|
@ -350,11 +350,14 @@ async def handle_client_registered(data: dict[str, Any]) -> None:
|
||||||
"""
|
"""
|
||||||
if data["success"]:
|
if data["success"]:
|
||||||
logger.info("Registered")
|
logger.info("Registered")
|
||||||
print(f"Join here: {state.config['server']}/{data['room']}")
|
|
||||||
qr = QRCode(box_size=20, border=2)
|
# this is borked on windows
|
||||||
qr.add_data(f"{state.config['server']}/{data['room']}")
|
if os.name != "nt":
|
||||||
qr.make()
|
print(f"Join here: {state.config['server']}/{data['room']}")
|
||||||
qr.print_ascii()
|
qr = QRCode(box_size=20, border=2)
|
||||||
|
qr.add_data(f"{state.config['server']}/{data['room']}")
|
||||||
|
qr.make()
|
||||||
|
qr.print_ascii()
|
||||||
state.config["room"] = data["room"]
|
state.config["room"] = data["room"]
|
||||||
await sio.emit("sources", {"sources": list(sources.keys())})
|
await sio.emit("sources", {"sources": list(sources.keys())})
|
||||||
if state.current_source is None: # A possible race condition can occur here
|
if state.current_source is None: # A possible race condition can occur here
|
||||||
|
|
Loading…
Add table
Reference in a new issue