Releases: peruukki/nhl-score-api
Bring back game stats
Some data was moved in the NHL API from the /landing response to a /right-rail endpoint response: linescore, teamGameStats, shotsByPeriod, seasonSeries, gameInfo, gameReports, seasonSeriesWins and gameVideo. Make an additional /right-rail request for each game and merge the two responses before passing them on for parsing.
Full Changelog: 0.49.4...0.49.5
Handle missing game stats gracefully
Game stats have moved behind another NHL API endpoint, so they are currently unavailable. Fix the server to handle that gracefully, and return zero values in the stats instead of returning an Internal Server Error.
Full Changelog: 0.49.3...0.49.4
Fix requesting coming season's games
Fixed an assertion error related to current standings date when requesting coming season's games. Also added Utah team name information.
Full Changelog: 0.49.2...0.49.3
Don't archive schedule response until all games have video recaps
It was very much possible some games were missing the video recap link by the time they were stored in the long-time cache.
Full Changelog: 0.49.1...0.49.2
Fix period field in playoff overtime goals
"OT" was erroneously used for playoff overtime periods too, it should only be used for regular season overtime goals. This got broken when switching to the new NHL API, and the related test was incorrectly updated too.
Full Changelog: 0.49.0...0.49.1
Include game related links in `links` field in API responses
Switch current date earlier to avoid too stale latest scores
Update playoff series wins parsing to current schedule format
Check if standings have fully updated before archiving
Apparently there was at least one case where a game in official state hadn't been added to the current standings, so they were archived too soon. Try to prevent that by comparing standings to previous date's and verifying that all games played on the date have been included.
Full Changelog: 0.48.10...0.48.11
Archive standings once all games are in "official" state
This allows us to archive standings much sooner, without needing to wait for the next day.
Full Changelog: 0.48.9...0.48.10