From 157f0f57c8178dc2f80d8dff368c4a6f984bec03 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Wed, 20 Apr 2016 15:18:32 -0500 Subject: [PATCH] Properly identify delayed games in-progress Had to wait for an in-progress game to be delayed to see the API return to properly catch this. --- i3pystatus/scores/mlb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i3pystatus/scores/mlb.py b/i3pystatus/scores/mlb.py index 8b09053..b28dec9 100644 --- a/i3pystatus/scores/mlb.py +++ b/i3pystatus/scores/mlb.py @@ -258,6 +258,9 @@ class MLB(ScoresBackend): if ret['status'] == 'delayed_start': ret['status'] = 'pregame' ret['delay'] = game.get('reason', 'Unknown') + elif ret['status'] == 'delayed': + ret['status'] = 'in_progress' + ret['delay'] = game.get('reason', 'Unknown') elif ret['status'] == 'postponed': ret['postponed'] = game.get('reason', 'Unknown Reason') elif ret['status'] == 'game_over':