Commit Graph

34 Commits

Author SHA1 Message Date
Georges-Antoine Assi
a82615f4a7 Treat Playmatch plain-text health response as healthy
The Playmatch /api/v2/health endpoint returns the plain-text body
"Healthy", but heartbeat() routed it through the JSON-parsing
_request(), so decoding always failed and the Metadata Sources page
showed "Connection failed" for a healthy service. Do a raw GET and
treat any 2xx response as healthy, matching the Hasheous handler.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 16:45:54 -04:00
Georges-Antoine Assi
cbba8b6259 feat(playmatch): support self-hosted Playmatch instances
Add a PLAYMATCH_API_URL env var (defaulting to the public instance) so
users can point RomM at a self-hosted Playmatch deployment. The handler
now derives all endpoints from this configurable base URL.

Fixes #3820

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 09:26:27 -04:00
Georges-Antoine Assi
96abd8b87c Merge pull request #3756 from DevYukine/fix/playmatch-heartbeat
fix(playmatch): handle empty heartbeat query
2026-07-15 21:44:15 -04:00
Yukine
e418dd4ba9 fix(playmatch): handle empty heartbeat query 2026-07-16 01:36:39 +02:00
DevYukine
21c0c0316c feat(playmatch): send CRC32 as an identify lookup key 2026-07-03 02:11:52 +02:00
DevYukine
cd7ddb253c chore(playmatch): move integration to API v2 endpoints 2026-07-03 01:55:32 +02:00
Georges-Antoine Assi
ec172dfeb1 use const 2026-06-06 09:58:17 -04:00
DevYukine
8006e4391d feat(playmatch): pre-emptive 4 req/s rate limiting with best-effort lookups 2026-06-06 04:16:21 +02:00
Georges-Antoine Assi
c3c6829962 refactor(playmatch): use dict as single source of truth for provider tags
Replace the tuple+derived-dict pair with PLAYMATCH_TAG_TO_ATTR as the
canonical mapping. Rename enum members to UPPER_CASE, expand
PlaymatchRomMatch to cover all provider ids, and inline the fallback
match in place of the _empty_playmatch_rom_match helper.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 15:41:33 -04:00
Yukine
f307aeaca3 refactor(playmatch): move PLAYMATCH_SUPPORTED_SOURCES into playmatch_handler 2026-05-16 05:41:22 +02:00
Yukine
820595a160 refactor(playmatch): simplify comments 2026-05-16 05:21:22 +02:00
Yukine
d9427573dc feat(playmatch): align with upstream MetadataProvider enum and return all provider ids 2026-05-16 05:17:17 +02:00
Yukine
1591e0971a fix(playmatch): only fire suggestion on manual mapping updates 2026-04-21 11:07:26 +02:00
Yukine
5ecdc8fd13 fix(playmatch): filter falsy provider ids and surface non-2xx responses 2026-04-21 10:56:48 +02:00
Yukine
fee40dc355 feat(playmatch): send a suggestion to playmatch on manual match 2026-04-21 10:54:41 +02:00
Georges-Antoine Assi
661a5504d7 find a couple more uses 2026-02-09 17:26:21 -05:00
Georges-Antoine Assi
f8b0ae63a1 fix scanning multi file games with ssfr 2025-10-31 10:50:51 -04:00
Georges-Antoine Assi
7a5185fe22 complete rest of handler 2025-09-20 19:38:26 -04:00
Georges-Antoine Assi
8c33a95637 remove hartbeat from bh endpoint 2025-09-20 17:57:38 -04:00
Georges-Antoine Assi
f9f76e1d18 add rommm header to all requests 2025-09-15 11:13:33 -04:00
Georges-Antoine Assi
3c4113f8a8 Merge branch 'master' into flashpoint-metadata-handler 2025-09-11 21:27:48 -04:00
Michael Manganiello
e4e3928d1b misc: Apply import sorting 2025-09-04 11:17:00 -03:00
Michael Manganiello
d216bad78b misc: Add MetadataHandler's is_enabled method
Convert `MetadataHandler` to an abstract base class and add an
`is_enabled` class method that allows every metadata handler to
independently report whether it is enabled based on its configuration.

This avoids the need for global variables in the config module, allowing
us to change the enabled state of a metadata handler at runtime if
needed.
2025-09-03 22:13:28 -03:00
Georges-Antoine Assi
8ed107336f only print queries once 2025-08-21 22:34:07 -04:00
Georges-Antoine Assi
593f5c921d catch playmatch connect error 2025-08-18 09:08:41 -04:00
Georges-Antoine Assi
3781cbdb6b catch json errors on all ends 2025-07-12 19:16:50 -04:00
Georges-Antoine Assi
ca58028ebc playmatch should just use the first file 2025-07-10 19:37:37 -04:00
Georges-Antoine Assi
837d36375d Fix metadata issues in heasheous handler 2025-07-09 09:14:41 -04:00
Georges-Antoine Assi
10eb50b501 Merge branch 'master' into hasheous-igdb-proxy 2025-07-05 09:59:01 -04:00
Georges-Antoine Assi
4158b278eb fix check issues 2025-07-04 17:55:45 -04:00
Georges-Antoine Assi
41d7bf8f13 start using hasheous as igdb proxy 2025-06-18 10:08:20 -04:00
zurdi
6fe80db114 fix: playmatch scanner 2025-06-18 09:29:05 +00:00
Georges-Antoine Assi
28d9807cb9 changes from self review 2025-06-17 12:18:26 -04:00
Georges-Antoine Assi
2b1297bd1a playmatch only runs under IGDB 2025-06-16 14:28:19 -04:00