File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ type Game struct {
36
36
37
37
// Pattern of game declarations in the public profile. It's actually JSON
38
38
// inside Javascript, but this way is easier to extract.
39
- const profileGamePattern = `\{"appid":\s* (\d+),\s*" name":\s*" (.+?)" `
39
+ const profileGamePattern = `<appID> (\d+)<\/appID>\s*< name><!\[CDATA\[ (.+?)\]\]><\/name> `
40
40
41
41
// Fetches the list of games from the public user profile. This is better than
42
42
// looking locally because the profiles give the full game name, which can be
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ func GetUsers(installationDir string) ([]User, error) {
84
84
}
85
85
86
86
// URL to get the game list from the SteamId64.
87
- const profilePermalinkFormat = `http://steamcommunity.com/profiles/%v/games?tab=all `
87
+ const profilePermalinkFormat = `http://steamcommunity.com/profiles/%v/games?xml=1 `
88
88
89
89
// The Steam website has the terrible habit of returning 200 OK when requests
90
90
// fail, and signaling the error in HTML. So we have to parse the request to
You can’t perform that action at this time.
0 commit comments