dict not list
This commit is contained in:
		
							parent
							
								
									f3b1f7653c
								
							
						
					
					
						commit
						18db046cca
					
				| @ -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) | ||||
|             control_player(client, f"{disc_data[0]}:{disc_data[1]}:{disc_data[2]}:RESET") | ||||
|             control_player(client, f"{disc_data[0]}:{disc_data[1]}:{disc_data[2]}:{disc_data[3]}") | ||||
|             control_player(client, f"ytube:{disc_data['name']}:{disc_data['type']}:RESET") | ||||
|             control_player(client, f"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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Karl Hudgell
						Karl Hudgell