From 67d3ddb6e6f412a3c7449270c632b5fa0e957334 Mon Sep 17 00:00:00 2001 From: Allan Galarza Date: Thu, 14 Jan 2021 19:59:41 -0700 Subject: [PATCH] Fixed bug in guild names being parsed with Non-Breaking spaces instead of a regular space. --- CHANGELOG.rst | 7 +++++++ tibiapy/__init__.py | 2 +- tibiapy/character.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9229909d..95fe30c8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,13 @@ Changelog Due to this library relying on external content, older versions are not guaranteed to work. Try to always use the latest version. +.. v3.6.3: + +3.6.3 (2021-01-14) +================== + +- Fixed bug in guild names being parsed with Non-Breaking spaces instead of a regular space. + .. v3.6.2: 3.6.2 (2021-01-01) diff --git a/tibiapy/__init__.py b/tibiapy/__init__.py index bba322c7..0835985d 100644 --- a/tibiapy/__init__.py +++ b/tibiapy/__init__.py @@ -1,4 +1,4 @@ -__version__ = '3.6.2' +__version__ = '3.6.3' __author__ = 'Allan Galarza' import logging diff --git a/tibiapy/character.py b/tibiapy/character.py index 475e54c3..4ab2d19f 100644 --- a/tibiapy/character.py +++ b/tibiapy/character.py @@ -429,7 +429,7 @@ def _parse_character_information(self, rows): if field == "guild_membership": guild_link = cols_raw[1].find('a') rank = value.split("of the")[0] - char["guild_membership"] = GuildMembership(guild_link.text, rank.strip()) + char["guild_membership"] = GuildMembership(guild_link.text.replace("\xa0", " "), rank.strip()) continue if field in int_rows: