Closed sprx97 closed 3 years ago
Looks like it isn't specified in the goal event. Would have to check for a preceding penalty event.
"result" : { "event" : "Penalty", "eventCode" : "MTL30", "eventTypeId" : "PENALTY", "description" : "Filip Hronek PS - Slash on breakaway against Jonathan Drouin", "secondaryType" : "PS - Slash on breakaway", "penaltySeverity" : "Penalty Shot", "penaltyMinutes" : 0 }, "about" : { "eventIdx" : 46, "eventId" : 30, "period" : 1, "periodType" : "REGULAR", "ordinalNum" : "1st", "periodTime" : "07:13", "periodTimeRemaining" : "12:47", "dateTime" : "2018-10-15T23:50:38Z", "goals" : { "away" : 0, "home" : 0 } }, "result" : { "event" : "Goal", "eventCode" : "MTL123", "eventTypeId" : "GOAL", "description" : "Jonathan Drouin (1) Wrist Shot, assists: none", "secondaryType" : "Wrist Shot", "strength" : { "code" : "EVEN", "name" : "Even" }, "emptyNet" : false }, "about" : { "eventIdx" : 47, "eventId" : 123, "period" : 1, "periodType" : "REGULAR", "ordinalNum" : "1st", "periodTime" : "07:13", "periodTimeRemaining" : "12:47", "dateTime" : "2018-10-15T23:51:15Z", "goals" : { "away" : 0, "home" : 1 } },
Fix is in, verification pending
Looks like it isn't specified in the goal event. Would have to check for a preceding penalty event.