From 262f5841cbc4f6ddb24ad791b42d9f3e2d80bdd2 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Fri, 20 Sep 2024 21:19:18 +0100 Subject: [PATCH] list --- buttons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buttons.py b/buttons.py index 7a34073..a07a3e7 100644 --- a/buttons.py +++ b/buttons.py @@ -40,8 +40,8 @@ def button_callback_3(channel): if time.time() - start_time >= 3: # Check if 3 seconds have passed print("Button 3 held for 3 seconds! Sending RADIO2.") disc_data = check_current_disc(client) - update_disc(client, f"ytube:{disc_data['name']}:{disc_data['type']}:RESET") - update_disc(client, f"ytube:{disc_data['name']}:{disc_data['type']}:{disc_data['id']}") + update_disc(client, ["ytube",disc_data['name'],disc_data['type'],"RESET"]) + update_disc(client, ["ytube",disc_data['name'],disc_data['type'],disc_data['id']]) return # Exit after sending RADIO2 # If button was not held for 3 seconds, send RADIO