milb live game check extended to 5 minutes

This commit is contained in:
Chuck
2025-08-09 14:20:08 -05:00
parent 5ec9b3ea6f
commit e5eef1320d
2 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@
"update_interval": 600, "update_interval": 600,
"scroll_speed": 1, "scroll_speed": 1,
"scroll_delay": 0.01, "scroll_delay": 0.01,
"toggle_chart": false, "toggle_chart": true,
"symbols": [ "symbols": [
"ASTS", "ASTS",
"SCHD", "SCHD",

View File

@@ -786,8 +786,8 @@ class MiLBLiveManager(BaseMiLBManager):
self.current_game_index = 0 self.current_game_index = 0
self.last_update = 0 self.last_update = 0
self.update_interval = self.milb_config.get('live_update_interval', 20) 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 # Poll at least every 300s when no live games to detect new live starts sooner
self.no_data_interval = max(60, self.update_interval) self.no_data_interval = max(300, self.update_interval)
self.last_game_switch = 0 # Track when we last switched games 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.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 self.last_display_update = 0 # Track when we last updated the display