Closed WardBrian closed 2 years ago
Closes #71. Adds a list with the broadcast names if they exist, otherwise it is empty.
Example:
In [1]: import statsapi In [2]: statsapi.schedule(game_id=661713) Out[2]: [{'game_id': 661713, 'game_datetime': '2022-07-29T23:07:00Z', 'game_date': '2022-07-29', 'game_type': 'R', 'status': 'Final', 'away_name': 'Detroit Tigers', 'home_name': 'Toronto Blue Jays', 'away_id': 116, 'home_id': 141, 'doubleheader': 'N', 'game_num': 1, 'home_probable_pitcher': 'Alek Manoah', 'away_probable_pitcher': 'Bryan Garcia', 'home_pitcher_note': '', 'away_pitcher_note': '', 'away_score': 4, 'home_score': 2, 'current_inning': 9, 'inning_state': 'Bottom', 'venue_id': 14, 'venue_name': 'Rogers Centre', 'national_broadcasts': ['Apple TV+'], #### NEW #### 'winning_team': 'Detroit Tigers', 'losing_team': 'Toronto Blue Jays', 'winning_pitcher': 'Will Vest', 'losing_pitcher': 'Alek Manoah', 'save_pitcher': 'Gregory Soto', 'summary': '2022-07-29 - Detroit Tigers (4) @ Toronto Blue Jays (2) (Final)'}]
Thank you. I will include this in the next version, which I am planning to publish in the next few days.
Closes #71. Adds a list with the broadcast names if they exist, otherwise it is empty.
Example: