File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ Changelog
6
6
Due to this library relying on external content, older versions are not guaranteed to work.
7
7
Try to always use the latest version.
8
8
9
+ .. _v2.3.3 :
10
+
11
+ 2.3.3 (2019-11-04)
12
+ ==================
13
+ - Fixed bug with world parsing when there are more than 1000 players online.
14
+
9
15
.. _v2.3.2 :
10
16
11
17
2.3.2 (2019-10-17)
Original file line number Diff line number Diff line change 13
13
from tibiapy .creature import *
14
14
from tibiapy .client import *
15
15
16
- __version__ = '2.3.2 '
16
+ __version__ = '2.3.3 '
17
17
18
18
from logging import NullHandler
19
19
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class ListedWorld(abc.BaseWorld):
31
31
The current status of the world.
32
32
online_count: :class:`int`
33
33
The number of currently online players in the world.
34
+
34
35
location: :class:`WorldLocation`
35
36
The physical location of the game servers.
36
37
pvp_type: :class:`PvpType`
@@ -341,7 +342,7 @@ def _parse_world_info(self, world_info_table):
341
342
value = value .replace ("\xa0 " , " " )
342
343
world_info [field ] = value
343
344
try :
344
- self .online_count = int (world_info .pop ("players_online" ))
345
+ self .online_count = parse_integer (world_info .pop ("players_online" ))
345
346
except KeyError :
346
347
self .online_count = 0
347
348
self .location = try_enum (WorldLocation , world_info .pop ("location" ))
@@ -579,7 +580,7 @@ def _parse_worlds(self, world_rows):
579
580
elif name == "World" :
580
581
continue
581
582
try :
582
- online = int (cols [1 ].text .strip ())
583
+ online = parse_integer (cols [1 ].text .strip ())
583
584
except ValueError :
584
585
online = 0
585
586
status = "Offline"
You can’t perform that action at this time.
0 commit comments