We need to find a better way to deal with player names. The names present in db/players.txt don't always match up to the names as represented in the game stats. As I see it there are 3 issues:
Some names have special meta characters. The player names on the game stats don't have these meta characters. Suggest cleaning up the names to only use simple english alphabets.
The names presented on the game stats pages don't use the full last/first name of the players. Instead of changing the db, I suggest doing something like:
if first_name + last_name in [db_first_name + db_last_name]:
return True
else:
return False
Some players real names are completely different from what they're commonly used names are, eg: Nani. If we can modify the database to parse an extra column, "Nicknames/Commonly Known As", then we can match against that.
We need to find a better way to deal with player names. The names present in db/players.txt don't always match up to the names as represented in the game stats. As I see it there are 3 issues: