Skip to content

Commit 6e0eb79

Browse files
committed
Fixed spells not parsing correctly
1 parent 4de992b commit 6e0eb79

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Changelog
1515
- Highscores
1616
- News
1717
- Forums
18+
- Spells
1819

1920
.. v.5.5.0
2021

tibiapy/spell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def from_content(cls, content):
361361
if isinstance(next_sibling, bs4.Tag):
362362
if next_sibling.name == "br":
363363
description += "\n"
364-
elif next_sibling.name == "table":
364+
elif next_sibling.name in ["table", "div"]:
365365
break
366366
else:
367367
description += next_sibling.text

0 commit comments

Comments
 (0)