Skip to content

Commit af091ed

Browse files
committed
Fixed forum parsing due to tibia.com changes
1 parent 6d69a14 commit af091ed

15 files changed

+349
-811
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@ Changelog
66
Due to this library relying on external content, older versions are not guaranteed to work.
77
Try to always use the latest version.
88

9-
.. v5.0.1 (Unreleased)
9+
.. v5.0.1
1010
11-
5.0.1 (Unreleased)
11+
5.0.1 (2021-08-26)
1212
==================
13+
- Fixed many sections not being parsed correctly due to changes to Tibia.com.
14+
- Houses list
15+
- News list
16+
- Spells section
17+
- Forums section
1318
- Fixed character's houses failing to parse due to a bug in the display in Tibia.com.
1419
- Temporarily disabling this attribute.
15-
- Fixed house list not parsing correctly due to Tibia.com changes
16-
- Fixed news list not parsing correctly due to Tibia.com changes
17-
18-
Pending:
19-
20-
- Forums section
21-
- Spells section
2220

2321
.. v5.0.0
2422

tests/resources/forums/tibiacom_announcement.txt

Lines changed: 4 additions & 17 deletions
Large diffs are not rendered by default.

tests/resources/forums/tibiacom_board.txt

Lines changed: 12 additions & 82 deletions
Large diffs are not rendered by default.

tests/resources/forums/tibiacom_board_empty.txt

Lines changed: 12 additions & 22 deletions
Large diffs are not rendered by default.

tests/resources/forums/tibiacom_board_golden_frame.txt

Lines changed: 22 additions & 93 deletions
Large diffs are not rendered by default.

tests/resources/forums/tibiacom_board_invalid_page.txt

Lines changed: 11 additions & 14 deletions
Large diffs are not rendered by default.

tests/resources/forums/tibiacom_section.txt

Lines changed: 3 additions & 163 deletions
Large diffs are not rendered by default.

tests/resources/forums/tibiacom_section_empty.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
<div class="BoxContent" style="background-image:url(https://static.tibia.com/images/global/content/scroll.gif);">
2-
<br><table border=0 cellpadding=2 cellspacing=0 width=100%><tr>
3-
<td class="ff_std" align="left">You are <b>not</b> logged in. <a href="https://www.tibia.com/account/index.php?subtopic=redirectlogin&amp;redirect=https%3A%2F%2Fwww.tibia.com%2Fforum%2Findex.php%3Fsectionid%3D1">Log in</a> to post on the forum.</td><td class="ff_info" align="right" valign="bottom">&nbsp;<br>Current Time: <i>00:40 CEST </i></td></tr>
4-
</table><table border=0 cellpadding=3 cellspacing=1 width=100%><tr>
5-
<td bgcolor="#505050" class="ff_white" colspan=1 align="center" width=32 height="16"><b><img src="https://static.tibia.com/images/global/general/blank.gif" width=32 height=16 border=0></b></td><td bgcolor="#505050" class="ff_white" colspan=1><b>Board</b></td><td bgcolor="#505050" class="ff_white" colspan=1 align="center"><b>Posts</b></td><td bgcolor="#505050" class="ff_white" colspan=1 align="center"><b>Threads</b></td><td bgcolor="#505050" class="ff_white" colspan=1 align="center"><b>Last Post</b></td></tr>
2+
<div class="ForumHead"><p class="ForumWelcome">You are <b>not</b> logged in.<br /><a href="https://www.tibia.com/account/index.php?subtopic=redirectlogin&amp;redirect=https%3A%2F%2Fwww.tibia.com%2Fforum%2Findex.php%3Fsectionid%3D10">Log in</a> to post on the forum.</p><div class="ForumTimes"><div class="CurrentTime">Current Time: <i>23:31 CEST </i></div></div></div><br /><div class="TableContainer"> <table class="Table3" cellpadding="0" cellspacing="0"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url(https://static.tibia.com/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url(https://static.tibia.com/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url(https://static.tibia.com/images/global/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url(https://static.tibia.com/images/global/content/box-frame-vertical.gif);" /></span> <div class="Text">Boards</div> <span class="CaptionVerticalRight" style="background-image:url(https://static.tibia.com/images/global/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url(https://static.tibia.com/images/global/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url(https://static.tibia.com/images/global/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url(https://static.tibia.com/images/global/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"><tr><td> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"><tr class="LabelH"><td class="BoardListFirstColumn"></td><td>Board</td><td>Posts</td><td>Threads</td><td>Last Post</td></tr><tr>
3+
<td bgcolor="#F1E0C6" class="ff_std" colspan=5>(You can not see any boards in this section.)</td></tr>
64
<tr>
7-
<td bgcolor="#D4C0A1" class="ff_std" colspan=5>(You can not see any boards in this section.)</td></tr>
8-
<tr>
9-
<table border=0 cellpadding=6 cellspacing=0 width=100%><tr>
10-
<td bgcolor="#505050" class="ff_white" colspan=1 align="left" NOWRAP><b>All times are CEST.</b></td><td bgcolor="#505050" class="ff_white" colspan=1 align="right" NOWRAP>&nbsp;</td></tr>
11-
</td></tr>
12-
</table><center><table border=0 cellpadding=3 cellspacing=0><tr>
5+
<tr style="background-color: #D4C0A1;"><td colspan="5" class="ForumContentFooter"><div class="ForumContentFooterLeft">All times are CEST</div></td></tr></td></tr>
6+
</table> </div></td></tr> </table> </div> </td> </tr> </table></div><center><table border=0 cellpadding=3 cellspacing=0><tr>
137
<td class="ff_info" colspan=1 align="center" valign="middle" NOWRAP><img src="https://static.tibia.com/images/forum/logo_newposts.gif" border=0 width=31 height=31></td><td class="ff_info" colspan=1 align="center" valign="middle" NOWRAP><b>New Posts</b></td><td class="ff_info" colspan=1 align="center" valign="middle" NOWRAP><img src="https://static.tibia.com/images/global/general/blank.gif" width=12 height=1 border=0></td><td class="ff_info" colspan=1 align="center" valign="middle" NOWRAP><img src="https://static.tibia.com/images/forum/logo_closed.gif" border=0 width=22 height=22></td><td class="ff_info" colspan=1 align="center" valign="middle" NOWRAP><b>Closed Board</b></td></tr>
148
</table></center> </div>
159
</div>

0 commit comments

Comments
 (0)