paaatrick / playball

Watch MLB games from the comfort of your own terminal
MIT License
528 stars 26 forks source link

Fix empty schedule response #19

Closed rdimascio closed 3 years ago

rdimascio commented 3 years ago

Resolves #18

This is Opening Day, folks! Let's get this patched before games start!

paaatrick commented 3 years ago

It's odd that I wasn't seeing the "No games today" message today. But these changes seem fine anyway. At some point I'd like to display the schedule for past and future dates so this is helpful for that as well.

rdimascio commented 3 years ago

Interesting! It must have been an issue with the MLB Stats API that they resolved. If I requested the schedule without the startDate and endDate parameters (http://statsapi.mlb.com/api/v1/schedule?sportId=1&hydrate=team,linescore), it wouldn't return any results. Seems to be working now though 🤔