mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[GH-ISSUE #482] [ESPN] Player Infos not retrievable #87
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JJOSHTECH on GitHub (Feb 12, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/482
I encounter an error in ESPN.py (Python Version: 3.11.7; OS: Windows: 11; soccerdata: 1.5.3):
I am retrieving all the lineups and in match. The issue occurs in match 643973. The Problem is the Structur of one players Data that looks as follows:
Especially this Part is odd:
'subbedOut': {'didSub': False}in other Playersdata this is directly a boolean and there are no sub fields. My solution is now to change ESPN.py at line 298 as follows:elif p["subbedOut"] and isinstance(p["subbedOut"], bool):I recognized the same error for subbedIn as well. So i changed line 282 as well:
elif p["subbedIn"] and isinstance(p["subbedIn"], bool):Does someone has a better solution?