Skip to content

Commit c5e209d

Browse files
committed
fix(sites): Implement BoardGameGeek API detection as suggested
Using the API endpoint suggested by akh7177: https://api.geekdo.com/api/users?username={} However, there's an edge case where valid users contain empty arrays in their JSON response (adminBadges[], userMicrobadges[], supportYears[]) which causes Sherlock's substring matching to incorrectly flag them as 'not found' when looking for the '[]' error pattern. The API correctly returns: - Valid user: JSON object with user data (but contains [] substrings) - Invalid user: Exactly '[]' (2 characters total) This needs further refinement to distinguish between the exact '[]' response vs JSON containing '[]' substrings.
1 parent 3e653c4 commit c5e209d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sherlock_project/resources/data.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,15 @@
278278
"urlMain": "https://bsky.app/",
279279
"username_claimed": "mcuban"
280280
},
281+
"BoardGameGeek": {
282+
"errorMsg": "[]",
283+
"errorType": "message",
284+
"regexCheck": "^[a-zA-Z0-9_]*$",
285+
"url": "https://boardgamegeek.com/profile/{}",
286+
"urlMain": "https://boardgamegeek.com",
287+
"urlProbe": "https://api.geekdo.com/api/users?username={}",
288+
"username_claimed": "blue"
289+
},
281290
"BongaCams": {
282291
"errorType": "status_code",
283292
"isNSFW": true,

0 commit comments

Comments
 (0)