diff --git a/custom_components/teamtracker/clear_values.py b/custom_components/teamtracker/clear_values.py index 4ce1874..283f54f 100644 --- a/custom_components/teamtracker/clear_values.py +++ b/custom_components/teamtracker/clear_values.py @@ -13,6 +13,7 @@ async def async_clear_values() -> dict: "team_abbr": None, "opponent_abbr": None, "event_name": None, + "event_url": None, "date": None, "kickoff_in": None, "series_summary": None, @@ -27,6 +28,7 @@ async def async_clear_values() -> dict: "team_rank": None, "team_homeaway": None, "team_logo": None, + "team_url": None, "team_colors": None, "team_score": None, "team_win_probability": None, @@ -38,6 +40,7 @@ async def async_clear_values() -> dict: "opponent_rank": None, "opponent_homeaway": None, "opponent_logo": None, + "opponent_url": None, "opponent_colors": None, "opponent_score": None, "opponent_win_probability": None, diff --git a/custom_components/teamtracker/const.py b/custom_components/teamtracker/const.py index f63b355..16ce401 100644 --- a/custom_components/teamtracker/const.py +++ b/custom_components/teamtracker/const.py @@ -192,7 +192,7 @@ # Misc TEAM_ID = "" -VERSION = "v0.13.0" +VERSION = "v0.14.0" ISSUE_URL = "https://github.com/vasqued2/ha-teamtracker" DOMAIN = "teamtracker" ATTRIBUTION = "Data provided by ESPN" diff --git a/custom_components/teamtracker/sensor.py b/custom_components/teamtracker/sensor.py index d04172e..1efb8b6 100644 --- a/custom_components/teamtracker/sensor.py +++ b/custom_components/teamtracker/sensor.py @@ -206,6 +206,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry, config: ConfigType) self._opponent_abbr = None self._event_name = None + self._event_url = None self._date = None self._kickoff_in = None self._series_summary = None @@ -221,6 +222,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry, config: ConfigType) self._team_rank = None self._team_homeaway = None self._team_logo = None + self._team_url = None self._team_colors = None self._team_score = None self._team_win_probability = None @@ -233,6 +235,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry, config: ConfigType) self._opponent_rank = None self._opponent_homeaway = None self._opponent_logo = None + self._opponent_url = None self._opponent_colors = None self._opponent_score = None self._opponent_win_probability = None @@ -308,6 +311,7 @@ def extra_state_attributes(self) -> dict[str, Any]: attrs["opponent_abbr"] = self.coordinator.data["opponent_abbr"] attrs["event_name"] = self.coordinator.data["event_name"] + attrs["event_url"] = self.coordinator.data["event_url"] attrs["date"] = self.coordinator.data["date"] attrs["kickoff_in"] = self.coordinator.data["kickoff_in"] attrs["series_summary"] = self.coordinator.data["series_summary"] @@ -323,6 +327,7 @@ def extra_state_attributes(self) -> dict[str, Any]: attrs["team_rank"] = self.coordinator.data["team_rank"] attrs["team_homeaway"] = self.coordinator.data["team_homeaway"] attrs["team_logo"] = self.coordinator.data["team_logo"] + attrs["team_url"] = self.coordinator.data["team_url"] attrs["team_colors"] = self.coordinator.data["team_colors"] # attrs["team_colors_rbg"] = self.colors2rgb(self.coordinator.data["team_colors"]) attrs["team_score"] = self.coordinator.data["team_score"] @@ -336,6 +341,7 @@ def extra_state_attributes(self) -> dict[str, Any]: attrs["opponent_rank"] = self.coordinator.data["opponent_rank"] attrs["opponent_homeaway"] = self.coordinator.data["opponent_homeaway"] attrs["opponent_logo"] = self.coordinator.data["opponent_logo"] + attrs["opponent_url"] = self.coordinator.data["opponent_url"] attrs["opponent_colors"] = self.coordinator.data["opponent_colors"] # attrs["opponent_colors_rgb"] = self.colors2rgb(self.coordinator.data["opponent_colors"]) attrs["opponent_score"] = self.coordinator.data["opponent_score"] diff --git a/custom_components/teamtracker/set_values.py b/custom_components/teamtracker/set_values.py index 9b4f506..eef2ca3 100644 --- a/custom_components/teamtracker/set_values.py +++ b/custom_components/teamtracker/set_values.py @@ -208,6 +208,7 @@ async def async_set_universal_values( ) ).upper() new_values["event_name"] = await async_get_value(event, "shortName") + new_values["event_url"] = await async_get_value(event, "links", 0, "href") new_values["date"] = await async_get_value( competition, "date", default=(await async_get_value(event, "date")) ) @@ -303,6 +304,20 @@ async def async_set_universal_values( opponent, "athlete", "flag", "href", default=DEFAULT_LOGO ), ) + new_values["team_url"] = await async_get_value( + competitor, + "team", + "links", + 0, + "href", + ) + new_values["opponent_url"] = await async_get_value( + opponent, + "team", + "links", + 0, + "href", + ) # _LOGGER.debug("%s: async_set_universal_values() 4: %s", sensor_name, sensor_name) new_values["quarter"] = await async_get_value( diff --git a/tests/tt/results/test_tt_all_test01.json b/tests/tt/results/test_tt_all_test01.json index d5a4d1d..7fd42e8 100644 --- a/tests/tt/results/test_tt_all_test01.json +++ b/tests/tt/results/test_tt_all_test01.json @@ -5,6 +5,7 @@ "team_abbr": "MIA", "opponent_abbr": "PHI", "event_name": "MIA @ PHI", + "event_url": "http://www.espn.com/mlb/game/_/gameId/401356264", "date": "2022-09-08T22:45Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/mlb/500/scoreboard/mia.png", + "team_url": "https://www.espn.com/mlb/team/_/name/mia/miami-marlins", "team_colors": [ "#0081c7", "#0077c8" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/mlb/500/scoreboard/phi.png", + "opponent_url": "https://www.espn.com/mlb/team/_/name/phi/philadelphia-phillies", "opponent_colors": [ "#be0011", "#284898" diff --git a/tests/tt/results/test_tt_all_test02.json b/tests/tt/results/test_tt_all_test02.json index fe660a7..ad7bf38 100644 --- a/tests/tt/results/test_tt_all_test02.json +++ b/tests/tt/results/test_tt_all_test02.json @@ -5,6 +5,7 @@ "team_abbr": "MIL", "opponent_abbr": "SF", "event_name": "SF @ MIL", + "event_url": "http://www.espn.com/mlb/game?gameId=401423258", "date": "2022-09-08T20:10Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/mlb/500/scoreboard/mil.png", + "team_url": "https://www.espn.com/mlb/team/_/name/mil/milwaukee-brewers", "team_colors": [ "#050C33", "#f1f2f3" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/mlb/500/scoreboard/sf.png", + "opponent_url": "https://www.espn.com/mlb/team/_/name/sf/san-francisco-giants", "opponent_colors": [ "#161415", "#000000" diff --git a/tests/tt/results/test_tt_all_test03.json b/tests/tt/results/test_tt_all_test03.json index b877e24..6830fb3 100644 --- a/tests/tt/results/test_tt_all_test03.json +++ b/tests/tt/results/test_tt_all_test03.json @@ -5,6 +5,7 @@ "team_abbr": "CIN", "opponent_abbr": "CHC", "event_name": "CIN @ CHC", + "event_url": "http://www.espn.com/mlb/game/_/gameId/401356263", "date": "2022-09-08T18:20Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/mlb/500/scoreboard/cin.png", + "team_url": "https://www.espn.com/mlb/team/_/name/cin/cincinnati-reds", "team_colors": [ "#c41422", "#ffffff" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/mlb/500/scoreboard/chc.png", + "opponent_url": "https://www.espn.com/mlb/team/_/name/chc/chicago-cubs", "opponent_colors": [ "#00417d", "#00417d" diff --git a/tests/tt/results/test_tt_all_test04.json b/tests/tt/results/test_tt_all_test04.json index 49f78f6..c79636e 100644 --- a/tests/tt/results/test_tt_all_test04.json +++ b/tests/tt/results/test_tt_all_test04.json @@ -5,6 +5,7 @@ "team_abbr": "BGSU", "opponent_abbr": "EKU", "event_name": "EKU @ BGSU", + "event_url": "https://www.espn.com/college-football/game/_/gameId/401416595", "date": "2022-09-10T20:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/189.png", + "team_url": "https://www.espn.com/college-football/team/_/id/189/bowling-green-falcons", "team_colors": [ "#2b1000", "#492000" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/2198.png", + "opponent_url": "https://www.espn.com/college-football/team/_/id/2198/eastern-kentucky-colonels", "opponent_colors": [ "#660819", "#f0f0f0" diff --git a/tests/tt/results/test_tt_all_test05.json b/tests/tt/results/test_tt_all_test05.json index 63c2316..2448dac 100644 --- a/tests/tt/results/test_tt_all_test05.json +++ b/tests/tt/results/test_tt_all_test05.json @@ -5,6 +5,7 @@ "team_abbr": "ALA", "opponent_abbr": "TEX", "event_name": "ALA @ TEX", + "event_url": "https://www.espn.com/college-football/game?gameId=401403868", "date": "2022-09-10T16:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": 1, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/333.png", + "team_url": "https://www.espn.com/college-football/team/_/id/333/alabama-crimson-tide", "team_colors": [ "#690014", "#f1f2f3" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/251.png", + "opponent_url": "https://www.espn.com/college-football/team/_/id/251/texas-longhorns", "opponent_colors": [ "#EE7524", "#f0f0f0" diff --git a/tests/tt/results/test_tt_all_test06.json b/tests/tt/results/test_tt_all_test06.json index 0587276..add424d 100644 --- a/tests/tt/results/test_tt_all_test06.json +++ b/tests/tt/results/test_tt_all_test06.json @@ -5,6 +5,7 @@ "team_abbr": "BUF", "opponent_abbr": "LAR", "event_name": "BUF @ LAR", + "event_url": "https://www.espn.com/nfl/game/_/gameId/401437654", "date": "2022-09-09T00:20Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/nfl/500/scoreboard/buf.png", + "team_url": "https://www.espn.com/nfl/team/_/name/buf/buffalo-bills", "team_colors": [ "#04407F", "#c60c30" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/nfl/500/scoreboard/lar.png", + "opponent_url": "https://www.espn.com/nfl/team/_/name/lar/los-angeles-rams", "opponent_colors": [ "#00295B", "#b3995d" diff --git a/tests/tt/results/test_tt_all_test07.json b/tests/tt/results/test_tt_all_test07.json index d3c1244..fa026cc 100644 --- a/tests/tt/results/test_tt_all_test07.json +++ b/tests/tt/results/test_tt_all_test07.json @@ -5,6 +5,7 @@ "team_abbr": "ORL", "opponent_abbr": "POR", "event_name": "POR @ ORL", + "event_url": "http://www.espn.com/soccer/match/_/gameId/633108", "date": "2022-09-09T23:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/soccer/500/18206.png", + "team_url": "http://www.espn.com/soccer/club/_/id/18206/orlando-pride", "team_colors": [ "#633492", "#a7c0dd" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/soccer/500/15362.png", + "opponent_url": "http://www.espn.com/soccer/club/_/id/15362/portland-thorns-fc", "opponent_colors": [ "#004812", "#000000" diff --git a/tests/tt/results/test_tt_all_test08.json b/tests/tt/results/test_tt_all_test08.json index cbd184a..7465b16 100644 --- a/tests/tt/results/test_tt_all_test08.json +++ b/tests/tt/results/test_tt_all_test08.json @@ -5,6 +5,7 @@ "team_abbr": "CLB", "opponent_abbr": "MTL", "event_name": "CLB @ MTL", + "event_url": "http://www.espn.com/soccer/match?gameId=623574", "date": "2022-09-09T23:30Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/soccer/500/183.png", + "team_url": "http://www.espn.com/soccer/club/_/id/183/columbus-crew", "team_colors": [ "#ffff00", "#c9c7c8" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/soccer/500/9720.png", + "opponent_url": "http://www.espn.com/soccer/club/_/id/9720/cf-montreal", "opponent_colors": [ "#181818", "#c9c7c8" diff --git a/tests/tt/results/test_tt_all_test09.json b/tests/tt/results/test_tt_all_test09.json index e462f93..98991b5 100644 --- a/tests/tt/results/test_tt_all_test09.json +++ b/tests/tt/results/test_tt_all_test09.json @@ -5,6 +5,7 @@ "team_abbr": "ARG", "opponent_abbr": "FRA", "event_name": "FRA @ ARG", + "event_url": "http://www.espn.com/soccer/match/_/gameId/633850", "date": "2022-12-18T15:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/arg.png", + "team_url": "http://www.espn.com/soccer/team/_/id/202/argentina", "team_colors": [ "#43A1D5", "#43A1D5" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/fra.png", + "opponent_url": "http://www.espn.com/soccer/team/_/id/478/france", "opponent_colors": [ "#112855", "#112855" diff --git a/tests/tt/results/test_tt_all_test10.json b/tests/tt/results/test_tt_all_test10.json index 951d2c7..003ea1b 100644 --- a/tests/tt/results/test_tt_all_test10.json +++ b/tests/tt/results/test_tt_all_test10.json @@ -5,6 +5,7 @@ "team_abbr": "DET", "opponent_abbr": "UTAH", "event_name": "UTAH @ DET", + "event_url": "https://www.espn.com/nba/game/_/gameId/401468616", "date": "2022-12-21T00:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/nba/500/scoreboard/det.png", + "team_url": "https://www.espn.com/nba/team/_/name/det/detroit-pistons", "team_colors": [ "#FA002C", "#006bb6" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/nba/500/scoreboard/utah.png", + "opponent_url": "https://www.espn.com/nba/team/_/name/utah/utah-jazz", "opponent_colors": [ "#000000", "#fff21f" diff --git a/tests/tt/results/test_tt_all_test11.json b/tests/tt/results/test_tt_all_test11.json index 012f3e1..2b3ced2 100644 --- a/tests/tt/results/test_tt_all_test11.json +++ b/tests/tt/results/test_tt_all_test11.json @@ -5,6 +5,7 @@ "team_abbr": "UTAH", "opponent_abbr": "TOR", "event_name": "UTAH @ TOR", + "event_url": "https://www.espn.com/nba/game?gameId=401474846", "date": "2022-10-02T22:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/nba/500/scoreboard/utah.png", + "team_url": "https://www.espn.com/nba/team/_/name/utah/utah-jazz", "team_colors": [ "#06143F", "#f9a01b" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/nba/500/scoreboard/tor.png", + "opponent_url": "https://www.espn.com/nba/team/_/name/tor/toronto-raptors", "opponent_colors": [ "#CE0F41", "#061922" diff --git a/tests/tt/results/test_tt_all_test12.json b/tests/tt/results/test_tt_all_test12.json index 1bb39ef..9434b04 100644 --- a/tests/tt/results/test_tt_all_test12.json +++ b/tests/tt/results/test_tt_all_test12.json @@ -5,6 +5,7 @@ "team_abbr": "CHA", "opponent_abbr": "BOS", "event_name": "CHA @ BOS", + "event_url": "http://www.espn.com/nba/game/_/gameId/401474845", "date": "2022-10-02T17:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/nba/500/scoreboard/cha.png", + "team_url": "https://www.espn.com/nba/team/_/name/cha/charlotte-hornets", "team_colors": [ "#1D1060", "#008ca8" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/nba/500/scoreboard/bos.png", + "opponent_url": "https://www.espn.com/nba/team/_/name/bos/boston-celtics", "opponent_colors": [ "#006532", "#f1f2f3" diff --git a/tests/tt/results/test_tt_all_test13.json b/tests/tt/results/test_tt_all_test13.json index 8270d81..922e431 100644 --- a/tests/tt/results/test_tt_all_test13.json +++ b/tests/tt/results/test_tt_all_test13.json @@ -5,6 +5,7 @@ "team_abbr": "WPG", "opponent_abbr": "OTT", "event_name": "OTT @ WPG", + "event_url": "https://www.espn.com/nhl/game/_/gameId/401459106", "date": "2022-12-21T01:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/nhl/500/scoreboard/wpg.png", + "team_url": "http://www.espn.com/nhl/team/_/name/wpg/winnipeg-jets", "team_colors": [ "#133866", "#b81f3d" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/nhl/500/scoreboard/ott.png", + "opponent_url": "http://www.espn.com/nhl/team/_/name/ott/ottawa-senators", "opponent_colors": [ "#d01b35", "#c89a1c" diff --git a/tests/tt/results/test_tt_all_test14.json b/tests/tt/results/test_tt_all_test14.json index 5972c37..b34b767 100644 --- a/tests/tt/results/test_tt_all_test14.json +++ b/tests/tt/results/test_tt_all_test14.json @@ -5,6 +5,7 @@ "team_abbr": "NYI", "opponent_abbr": "PHI", "event_name": "PHI @ NYI", + "event_url": "http://www.espn.com/nhl/game/_/gameId/401461502", "date": "2022-10-02T23:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/nhl/500/scoreboard/nyi.png", + "team_url": "http://www.espn.com/nhl/team/_/name/nyi/new-york-islanders", "team_colors": [ "#10539c", "#e17033" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/nhl/500/scoreboard/phi.png", + "opponent_url": "http://www.espn.com/nhl/team/_/name/phi/philadelphia-flyers", "opponent_colors": [ "#eb7131", "#000000" diff --git a/tests/tt/results/test_tt_all_test15.json b/tests/tt/results/test_tt_all_test15.json index a263422..a6c5788 100644 --- a/tests/tt/results/test_tt_all_test15.json +++ b/tests/tt/results/test_tt_all_test15.json @@ -5,6 +5,7 @@ "team_abbr": "CBJ", "opponent_abbr": "WSH", "event_name": "WSH @ CBJ", + "event_url": "https://www.espn.com/nhl/game/_/gameId/401461499", "date": "2022-10-01T23:00Z", "kickoff_in": "{test} days", "series_summary": "CBJ leads series 3-2", @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/nhl/500/scoreboard/cbj.png", + "team_url": "http://www.espn.com/nhl/team/_/name/cbj/columbus-blue-jackets", "team_colors": [ "#002d62", "#cd202c" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/nhl/500/scoreboard/wsh.png", + "opponent_url": "http://www.espn.com/nhl/team/_/name/wsh/washington-capitals", "opponent_colors": [ "#d01b35", "#002d62" diff --git a/tests/tt/results/test_tt_all_test16.json b/tests/tt/results/test_tt_all_test16.json index eb99d15..f3b40b1 100644 --- a/tests/tt/results/test_tt_all_test16.json +++ b/tests/tt/results/test_tt_all_test16.json @@ -5,6 +5,7 @@ "team_abbr": "PEPP", "opponent_abbr": "CP", "event_name": "CP @ PEPP", + "event_url": null, "date": "2022-09-09T00:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": 24, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/2492.png", + "team_url": null, "team_colors": [ "#009c98", "#009c98" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/13.png", + "opponent_url": null, "opponent_colors": [ "#083808", "#083808" diff --git a/tests/tt/results/test_tt_all_test17.json b/tests/tt/results/test_tt_all_test17.json index f3ef1ef..019d808 100644 --- a/tests/tt/results/test_tt_all_test17.json +++ b/tests/tt/results/test_tt_all_test17.json @@ -5,6 +5,7 @@ "team_abbr": "MSST", "opponent_abbr": "KENN", "event_name": "KENN @ MSST", + "event_url": null, "date": "2022-09-08T23:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/344.png", + "team_url": null, "team_colors": [ "#531122", "#531122" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/338.png", + "opponent_url": null, "opponent_colors": [ "#A9A9A9", "#A9A9A9" diff --git a/tests/tt/results/test_tt_all_test18.json b/tests/tt/results/test_tt_all_test18.json index 177607e..17ff0fb 100644 --- a/tests/tt/results/test_tt_all_test18.json +++ b/tests/tt/results/test_tt_all_test18.json @@ -5,6 +5,7 @@ "team_abbr": "ARMY", "opponent_abbr": "SYR", "event_name": "ARMY @ SYR", + "event_url": null, "date": "2022-09-08T21:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/349.png", + "team_url": null, "team_colors": [ "#ce9c00", "#ce9c00" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/183.png", + "opponent_url": null, "opponent_colors": [ "#1A3E86", "#1A3E86" diff --git a/tests/tt/results/test_tt_all_test19.json b/tests/tt/results/test_tt_all_test19.json index 4ecc9b4..af4458b 100644 --- a/tests/tt/results/test_tt_all_test19.json +++ b/tests/tt/results/test_tt_all_test19.json @@ -5,6 +5,7 @@ "team_abbr": "JACQUEMOT", "opponent_abbr": null, "event_name": "Open BLS de Limoges", + "event_url": "https://www.espn.com/tennis/scoreboard/tournament/_/eventId/504-2023/competitionType/2", "date": "2023-12-16T17:30Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/fra.png", + "team_url": null, "team_colors": null, "team_score": null, "team_win_probability": null, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/rus.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": null, "opponent_win_probability": null, diff --git a/tests/tt/results/test_tt_all_test20.json b/tests/tt/results/test_tt_all_test20.json index 0a96f62..b5baa2a 100644 --- a/tests/tt/results/test_tt_all_test20.json +++ b/tests/tt/results/test_tt_all_test20.json @@ -5,6 +5,7 @@ "team_abbr": "BUCSA", "opponent_abbr": null, "event_name": "Open BLS de Limoges", + "event_url": "https://www.espn.com/tennis/scoreboard/tournament/_/eventId/504-2023/competitionType/2", "date": "2023-12-16T15:40Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/esp.png", + "team_url": null, "team_colors": null, "team_score": 0, "team_win_probability": 0.0, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/rus.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": 0, "opponent_win_probability": 0.0, diff --git a/tests/tt/results/test_tt_all_test21.json b/tests/tt/results/test_tt_all_test21.json index 2ce4a3f..c6ea597 100644 --- a/tests/tt/results/test_tt_all_test21.json +++ b/tests/tt/results/test_tt_all_test21.json @@ -5,6 +5,7 @@ "team_abbr": "COCCIARETTO", "opponent_abbr": null, "event_name": "Open BLS de Limoges", + "event_url": "https://www.espn.com/tennis/scoreboard/tournament/_/eventId/504-2023/competitionType/2", "date": "2023-12-15T19:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/ita.png", + "team_url": null, "team_colors": null, "team_score": 0, "team_win_probability": null, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/rus.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": 2, "opponent_win_probability": null, diff --git a/tests/tt/results/test_tt_all_test22.json b/tests/tt/results/test_tt_all_test22.json index 3e452d2..b508408 100644 --- a/tests/tt/results/test_tt_all_test22.json +++ b/tests/tt/results/test_tt_all_test22.json @@ -5,6 +5,7 @@ "team_abbr": "STRICKLAND", "opponent_abbr": null, "event_name": "UFC Fight Night", + "event_url": "https://www.espn.com/mma/fightcenter/_/id/600023847", "date": "2022-12-18T00:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/usa.png", + "team_url": null, "team_colors": null, "team_score": null, "team_win_probability": null, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/usa.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": null, "opponent_win_probability": null, diff --git a/tests/tt/results/test_tt_all_test23.json b/tests/tt/results/test_tt_all_test23.json index d0eb53a..0537041 100644 --- a/tests/tt/results/test_tt_all_test23.json +++ b/tests/tt/results/test_tt_all_test23.json @@ -5,6 +5,7 @@ "team_abbr": "CACERES", "opponent_abbr": null, "event_name": "UFC Fight Night", + "event_url": "https://www.espn.com/mma/fightcenter/_/id/600023847", "date": "2022-12-18T00:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/usa.png", + "team_url": null, "team_colors": null, "team_score": null, "team_win_probability": 0.0, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/usa.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": null, "opponent_win_probability": 0.0, diff --git a/tests/tt/results/test_tt_all_test24.json b/tests/tt/results/test_tt_all_test24.json index d9076e8..133cffc 100644 --- a/tests/tt/results/test_tt_all_test24.json +++ b/tests/tt/results/test_tt_all_test24.json @@ -5,6 +5,7 @@ "team_abbr": "FAKHRETDINOV", "opponent_abbr": null, "event_name": "UFC Fight Night", + "event_url": "https://www.espn.com/mma/fightcenter/_/id/600023847", "date": "2022-12-17T21:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/rus.png", + "team_url": null, "team_colors": null, "team_score": 3, "team_win_probability": null, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/usa.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": 0, "opponent_win_probability": null, diff --git a/tests/tt/results/test_tt_all_test25.json b/tests/tt/results/test_tt_all_test25.json index b29a40f..40f3f35 100644 --- a/tests/tt/results/test_tt_all_test25.json +++ b/tests/tt/results/test_tt_all_test25.json @@ -5,6 +5,7 @@ "team_abbr": "CONNERS", "opponent_abbr": null, "event_name": "ZOZO CHAMPIONSHIP", + "event_url": "https://www.espn.com/golf/leaderboard?tournamentId=401465500", "date": "2022-10-13T04:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": "T31", "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/can.png", + "team_url": null, "team_colors": null, "team_score": "-4", "team_win_probability": 0.0, @@ -30,6 +32,7 @@ "opponent_rank": "1", "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/usa.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": "-14", "opponent_win_probability": 0.0, diff --git a/tests/tt/results/test_tt_all_test26.json b/tests/tt/results/test_tt_all_test26.json index d5756c5..d74d591 100644 --- a/tests/tt/results/test_tt_all_test26.json +++ b/tests/tt/results/test_tt_all_test26.json @@ -5,6 +5,7 @@ "team_abbr": "BH", "opponent_abbr": "SS", "event_name": "BH v SS", + "event_url": "https://www.espn.in/cricket/series/8044/game/1324648/brisbane-heat-vs-sydney-sixers-25th-match-big-bash-league-2022-23", "date": "2023-01-01T08:15Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/cricket/500/509668.png", + "team_url": "https://www.espn.in/cricket/team/_/id/509668/brisbane-heat", "team_colors": [ "#", "#" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/cricket/500/509673.png", + "opponent_url": "https://www.espn.in/cricket/team/_/id/509673/sydney-sixers", "opponent_colors": [ "#", "#" diff --git a/tests/tt/results/test_tt_all_test27.json b/tests/tt/results/test_tt_all_test27.json index 6769eb9..da69b98 100644 --- a/tests/tt/results/test_tt_all_test27.json +++ b/tests/tt/results/test_tt_all_test27.json @@ -5,6 +5,7 @@ "team_abbr": "MR", "opponent_abbr": "PS", "event_name": "MR v PS", + "event_url": "https://www.espn.in/cricket/series/8044/game/1324647/melbourne-renegades-vs-perth-scorchers-24th-match-big-bash-league-2022-23", "date": "2023-01-01T02:40Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/cricket/500/509671.png", + "team_url": "https://www.espn.in/cricket/team/_/id/509671/melbourne-renegades", "team_colors": [ "#", "#" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/cricket/500/509670.png", + "opponent_url": "https://www.espn.in/cricket/team/_/id/509670/perth-scorchers", "opponent_colors": [ "#", "#" diff --git a/tests/tt/results/test_tt_all_test28.json b/tests/tt/results/test_tt_all_test28.json index 0a20bd7..dc45ad2 100644 --- a/tests/tt/results/test_tt_all_test28.json +++ b/tests/tt/results/test_tt_all_test28.json @@ -5,6 +5,7 @@ "team_abbr": "IND", "opponent_abbr": "BAN", "event_name": "BAN v IND", + "event_url": "https://www.espn.in/cricket/series/21108/scorecard/1340849/bangladesh-vs-india-2nd-test-india-in-bangladesh-2022-23", "date": "2022-12-22T03:30Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": "away", "team_logo": "https://a.espncdn.com/i/teamlogos/cricket/500/6.png", + "team_url": "https://www.espn.in/cricket/team/_/id/6/india", "team_colors": [ "##137dd2", "##137dd2" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "home", "opponent_logo": "https://a.espncdn.com/i/teamlogos/cricket/500/25.png", + "opponent_url": "https://www.espn.in/cricket/team/_/id/25/bangladesh", "opponent_colors": [ "##006a4e", "##006a4e" diff --git a/tests/tt/results/test_tt_all_test29.json b/tests/tt/results/test_tt_all_test29.json index ba3c34a..9859310 100644 --- a/tests/tt/results/test_tt_all_test29.json +++ b/tests/tt/results/test_tt_all_test29.json @@ -5,6 +5,7 @@ "team_abbr": "SAINTZ", "opponent_abbr": null, "event_name": "Azerbaijan GP", + "event_url": "https://www.espn.com/f1/race/_/id/600026751", "date": "2023-04-30T11:00Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": 4, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/esp.png", + "team_url": null, "team_colors": null, "team_score": 4, "team_win_probability": null, @@ -30,6 +32,7 @@ "opponent_rank": 1, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/mon.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": 1, "opponent_win_probability": null, diff --git a/tests/tt/results/test_tt_all_test30.json b/tests/tt/results/test_tt_all_test30.json index 2599f05..0e18819 100644 --- a/tests/tt/results/test_tt_all_test30.json +++ b/tests/tt/results/test_tt_all_test30.json @@ -5,6 +5,7 @@ "team_abbr": "VERSTAPPEN", "opponent_abbr": null, "event_name": "Azerbaijan GP", + "event_url": "https://www.espn.com/f1/race/_/id/600026751", "date": "2023-04-29T13:30Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/ned.png", + "team_url": null, "team_colors": null, "team_score": 4, "team_win_probability": 0.0, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/mon.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": 1, "opponent_win_probability": 0.0, diff --git a/tests/tt/results/test_tt_all_test31.json b/tests/tt/results/test_tt_all_test31.json index 0c6534e..d236075 100644 --- a/tests/tt/results/test_tt_all_test31.json +++ b/tests/tt/results/test_tt_all_test31.json @@ -5,6 +5,7 @@ "team_abbr": "STROLLZ", "opponent_abbr": null, "event_name": "Azerbaijan GP", + "event_url": "https://www.espn.com/f1/race/_/id/600026751", "date": "2023-04-28T09:30Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": null, "team_homeaway": null, "team_logo": "https://a.espncdn.com/i/teamlogos/countries/500/can.png", + "team_url": null, "team_colors": null, "team_score": 7, "team_win_probability": null, @@ -30,6 +32,7 @@ "opponent_rank": null, "opponent_homeaway": null, "opponent_logo": "https://a.espncdn.com/i/teamlogos/countries/500/ned.png", + "opponent_url": null, "opponent_colors": null, "opponent_score": 1, "opponent_win_probability": null, diff --git a/tests/tt/results/test_ttm_teste00.json b/tests/tt/results/test_ttm_teste00.json index 383b481..3fb4a17 100644 --- a/tests/tt/results/test_ttm_teste00.json +++ b/tests/tt/results/test_ttm_teste00.json @@ -5,6 +5,7 @@ "team_abbr": "MICH", "opponent_abbr": "OSU", "event_name": "OSU @ MICH", + "event_url": "https://www.espn.com/college-football/game?gameId=401404125", "date": "2022-09-10T18:30Z", "kickoff_in": "{test} days", "series_summary": null, @@ -19,6 +20,7 @@ "team_rank": 8, "team_homeaway": "home", "team_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/130.png", + "team_url": "https://www.espn.com/college-football/team/_/id/87/notre-dame-fighting-irish", "team_colors": [ "#00122b", "#ae9142" @@ -33,6 +35,7 @@ "opponent_rank": null, "opponent_homeaway": "away", "opponent_logo": "https://a.espncdn.com/i/teamlogos/ncaa/500/194.png", + "opponent_url": "https://www.espn.com/college-football/team/_/id/276/marshall-thundering-herd", "opponent_colors": [ "#de3121", "#666666"