-
How does the system know when the teams are wearing the City Connect Jersey's, so it knows to change the colours on the board? Thanks Scott |
Beta Was this translation helpful? Give feedback.
Answered by
WardBrian
May 3, 2025
Replies: 1 comment 5 replies
-
The API got a new uniform endpoint. Here’s an example: https://statsapi.mlb.com/api/v1/uniforms/game/?gamePks=746508 in Python, this is available as “game_uniforms” in statsapi.get: https://github.com/toddrob99/MLB-StatsAPI/wiki/Endpoints#endpoint-game_uniforms |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently we only do city connect colors, because all teams’ uniform assets for those contain the string “City Connect” so it’s very easy to detect. I tried to make the code easy to modify if someone wanted to add custom logic for their own team, but the names aren’t standardized enough for us to do much generically
are the Jays your top preferred team? If so it seems like your board wouldn’t have ever rotated while that game was live, so if it did indeed load the first time before the API populated it would get stuck. That should be an easy fix on our end, just adding a refresh to the Uniform class