From c243daf25372d959ff5fdf7ff1746cf88d4e7ff5 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Sat, 25 Jan 2025 08:43:17 -0800 Subject: [PATCH] Fix channels saving to wrong index --- save_to_radio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save_to_radio.py b/save_to_radio.py index 0f97ec0..e690949 100644 --- a/save_to_radio.py +++ b/save_to_radio.py @@ -53,7 +53,7 @@ def save_changes(interface, menu_path, modified_settings): try: channel = menu_path[-1] - channel_num = int(channel.split()[-1]) + channel_num = int(channel.split()[-1]) - 1 except (IndexError, ValueError) as e: channel_num = None