Skip to content

Read XP from the new social profile page - #32

Merged
CodySimonds65 merged 1 commit into
mainfrom
fix/social-profile-page
Oct 3, 2026
Merged

CodySimonds65 merged 1 commit into
mainfrom
fix/social-profile-page

Conversation

@CodySimonds65

Copy link
Copy Markdown
Owner

Why

The site moved player profiles from player.php to social_profile.php and rebuilt the page. player.php now 302-redirects, and both the desktop tracker and the leaderboard service refuse redirects, so XP tracking stopped working.

What

  • Fetch social_profile.php?id={playerId} directly.
  • Rewrite PlayerProfileHtmlParser for the new markup (username, active class, level, EXP, stats, equipment).
  • Accept both /social_profile.php and /player.php in ranking rows (the ranking page still links the old path) and in pasted profile links; a fragment such as #classes is now allowed on a pasted link.

The new page has no per-class "Updated" time, so SourceUpdated is now always null and the class comparison panel shows "Profile timestamp unavailable".

Testing

  • Parsed the live profile page for player 98: all classes, stats and equipment read correctly.
  • Core and Desktop tests pass. Leaderboard tests: 32 pass; the 8 LeaderboardStoreTests need Docker and were not run locally.

Deploy

Collection__ProfileUrlTemplate on Render is already set to the new URL. The service needs a manual deploy after merge (auto-deploy is off).

The site moved player profiles from player.php to social_profile.php
and rebuilt the page. player.php now redirects, which the tracker and
the leaderboard service both refuse, so XP tracking stopped working.

Fetch social_profile.php directly and parse its new markup. Accept
both profile paths in ranking links and pasted profile links, and
allow a fragment such as #classes on a pasted link.
@CodySimonds65
CodySimonds65 merged commit 6c0490d into main Oct 3, 2026
@CodySimonds65
CodySimonds65 deleted the fix/social-profile-page branch October 3, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant