From e3aada6aef05f869d432e2d0f8184bcad6c85798 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:16:45 +0100 Subject: [PATCH] Fix RoyalCams site check using BongaCams white-label pattern (#2334) * Initial plan * Disable RoyalCams site check to fix false-positive probe The Telegram Maigret bot auto-probe reported CLAIMED for three random usernames. The status_code checkType is unreliable as the site returns 200 for non-existent user profiles (soft 404). Disabling the site check until a reliable detection method can be established. Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> Agent-Logs-Url: https://github.com/soxoj/maigret/sessions/05b3d513-fe15-477d-a455-0c9ddf0b8b51 * Fix RoyalCams: switch to message checkType using BongaCams white-label pattern RoyalCams runs on the BongaCams platform. Applied the same fix pattern: - Switch from status_code to message checkType - Use Portuguese locale (pt.royalcams.com) as urlProbe - absenceStrs matches generic title on non-existent profiles - presenseStrs matches Portuguese profile title for existing users - Add browser-like headers matching BongaCams config - Remove disabled flag Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> Agent-Logs-Url: https://github.com/soxoj/maigret/sessions/2f6a9523-278a-4992-ba7c-c320de14bfa4 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> --- maigret/resources/data.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/maigret/resources/data.json b/maigret/resources/data.json index afdc3a5..4d1cfe0 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -14094,10 +14094,28 @@ "us", "webcam" ], - "checkType": "status_code", + "headers": { + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0", + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", + "Accept-Language": "en-US,en;q=0.5", + "Referer": "https://pt.royalcams.com/", + "Upgrade-Insecure-Requests": "1", + "Sec-Fetch-Dest": "document", + "Sec-Fetch-Mode": "navigate", + "Sec-Fetch-Site": "same-origin", + "Sec-Fetch-User": "?1" + }, + "absenceStrs": [ + "- RoyalCams" + ], + "presenseStrs": [ + "