panzarino/mlbgame

Home/Away Probable Pitchers Reversed

Closed this issue · 7 comments

I'm grabbing the probable pitchers for 3/28/2019 and I noticed on the Reds/Pirates game it has Jamison Taillon as the home pitcher & Luis Castillo as the away pitcher when the game is being played in Cincinnati.

Confirmed. Checked the Pirates at Reds on 3/28/19 and Astros at Rays on 3/29/19.

That is an issue with the data that mlb.com provides, and is not an issue with this library. This library simply gets the data from mlb.com, so this is not an issue that can be fixed.

MLB's data source is actually showing things correctly: http://gd2.mlb.com/components/game/mlb/year_2019/month_03/day_28/gid_2019_03_28_pitmlb_cinmlb_1/linescore.xml

{'game_id': '2019_03_28_pitmlb_cinmlb_1', 'game_tag': 'sg_game', 'game_league': 'NN', 'game_status': 'PRE_GAME', 'game_start_time': '04:10 pm', 'home_team': 'Reds', 'home_team_runs': 0, 'home_team_hits': 0, 'home_team_errors': 0, 'away_team': 'Pirates', 'away_team_runs': 0, 'away_team_hits': 0, 'away_team_errors': 0, 'p_pitcher_home': 'Jameson Taillon', 'p_pitcher_home_wins': 0, 'p_pitcher_home_losses': 0, 'p_pitcher_away': 'Luis Castillo', 'p_pitcher_away_wins': 0, 'p_pitcher_away_losses': 0, 'date': datetime.datetime(2019, 3, 28, 16, 10)}```

Is this the only game that this is happening for or is it also an issue for other games?

I found two games with the problem. See my comment above. Pit @ Cin and Hou @ Rays

This looks to be fixed with the master branch.

    "away_probable_pitcher_name_display_roster": "Taillon",
    "home_probable_pitcher_name_display_roster": "Castillo",

If it is fixed on master it will be included in the next release (I've been pretty booked the past couple weeks but I'll try to get a release out asap).