Closed koenvo closed 3 years ago
@BenjaminLarrousse the goalkeeper is not implemented at all indeed. I would prefer to have BodyPart implemented for each provider first, and then add the GoalKeeper event(s).
Would you like to implement this for Statsbomb?
Yes I do!
The way I see things:
body_part = BodyPart.LEFT_FOOT
if pass_dict["body_part"]["id"] = 38
. Then add a _bodypart key in the returned dict of the function.
At the top of the file, I can set the value as you did for other events (e.g. SB_BODYPART_LEFT_FOOT = 38)Do you see things I should be careful about when implementing this?
That sounds like a great plan @BenjaminLarrousse, and I think you mentioned all important parts 👍
@koenvo I created a pull request. I think it's good.
Look at it when you have the time and let me know. Thanks
BodyPart qualifier exists for Goalkeeper, pass and shot.
We could add it inside _parse_pass() for pass and _parse_shot() for shots (inside the Statsbomb's serializer). A bit like "outcome" is created.
The goalkeeper part is not taken care of, I think ?