more robust half time detection

This commit is contained in:
Chuck
2025-08-09 20:06:25 -05:00
parent 938c31c815
commit 6a2e5edf2e
3 changed files with 5 additions and 5 deletions

View File

@@ -396,7 +396,7 @@ class BaseNCAAMBasketballManager:
"period": status.get("period", 0),
"clock": status.get("displayClock", "0:00"),
"is_live": status["type"]["state"] in ("in", "halftime"), # Include halftime as live
"is_halftime": status["type"]["state"] == "halftime",
"is_halftime": status["type"]["state"] == "halftime" or status["type"]["name"] == "STATUS_HALFTIME",
"is_final": status["type"]["state"] == "post",
"is_upcoming": status["type"]["state"] == "pre",
"home_abbr": home_team["team"]["abbreviation"],