Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add national broadcast data to schedule #85

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

WardBrian
Copy link
Contributor

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)'}]

@toddrob99 toddrob99 changed the base branch from master to develop August 10, 2022 01:03
@toddrob99 toddrob99 self-assigned this Aug 10, 2022
@toddrob99 toddrob99 added the enhancement New feature or request label Aug 10, 2022
@toddrob99 toddrob99 merged commit 65a90a5 into toddrob99:develop Aug 10, 2022
@toddrob99
Copy link
Owner

Thank you. I will include this in the next version, which I am planning to publish in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] Add national broadcast information to schedule data
2 participants