Repository navigation
Read XP from the new social profile page - #32
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The site moved player profiles from
player.phptosocial_profile.phpand rebuilt the page.player.phpnow 302-redirects, and both the desktop tracker and the leaderboard service refuse redirects, so XP tracking stopped working.What
social_profile.php?id={playerId}directly.PlayerProfileHtmlParserfor the new markup (username, active class, level, EXP, stats, equipment)./social_profile.phpand/player.phpin ranking rows (the ranking page still links the old path) and in pasted profile links; a fragment such as#classesis now allowed on a pasted link.The new page has no per-class "Updated" time, so
SourceUpdatedis now always null and the class comparison panel shows "Profile timestamp unavailable".Testing
LeaderboardStoreTestsneed Docker and were not run locally.Deploy
Collection__ProfileUrlTemplateon Render is already set to the new URL. The service needs a manual deploy after merge (auto-deploy is off).