From e5eef1320d66804b52473353f806263872f6e372 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sat, 9 Aug 2025 14:20:08 -0500 Subject: [PATCH] milb live game check extended to 5 minutes --- config/config.json | 2 +- src/milb_manager.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.json b/config/config.json index 05467d74..91314a9c 100644 --- a/config/config.json +++ b/config/config.json @@ -91,7 +91,7 @@ "update_interval": 600, "scroll_speed": 1, "scroll_delay": 0.01, - "toggle_chart": false, + "toggle_chart": true, "symbols": [ "ASTS", "SCHD", diff --git a/src/milb_manager.py b/src/milb_manager.py index 2946b2fd..269f9a1c 100644 --- a/src/milb_manager.py +++ b/src/milb_manager.py @@ -786,8 +786,8 @@ class MiLBLiveManager(BaseMiLBManager): self.current_game_index = 0 self.last_update = 0 self.update_interval = self.milb_config.get('live_update_interval', 20) - # Poll at least every 60s when no live games to detect new live starts sooner - self.no_data_interval = max(60, self.update_interval) + # Poll at least every 300s when no live games to detect new live starts sooner + self.no_data_interval = max(300, self.update_interval) self.last_game_switch = 0 # Track when we last switched games self.game_display_duration = self.milb_config.get('live_game_duration', 30) # Display each live game for 30 seconds self.last_display_update = 0 # Track when we last updated the display