feat(playmatch): add SteamGridDB, ScreenScraper, MobyGames & Launchbox hash support#3381
Merged
gantoine merged 5 commits intoMay 16, 2026
Merged
Conversation
… all provider ids
…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>
gantoine
approved these changes
May 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Expands Playmatch integration so that hash-based matching can feed direct ID lookups into IGDB, MobyGames, ScreenScraper, LaunchBox, and SteamGridDB metadata fetchers — not just IGDB. The gate that required MetadataSource.IGDB + platform.igdb_id to even invoke Playmatch is replaced with a broader check that any supported source is enabled, and the parser now ingests every provider ID Playmatch returns.
Changes:
- Generalize the Playmatch response model (
PlaymatchRomMatch) and parsing loop to capture all provider IDs via a newPLAYMATCH_TAG_TO_ATTRmapping; renameGameMatchTypeenum members to followUPPER_SNAKE_CASE. - Loosen
fetch_playmatch_hash_matchgating to any Playmatch-supported source (PLAYMATCH_SUPPORTED_SOURCES) and always run on UPDATE/UNMATCHED scans. - Plumb the Playmatch match into
fetch_moby_rom,fetch_ss_rom,fetch_launchbox_rom, andfetch_sgdb_details, using the returned IDs asget_rom_by_idshortcuts when present.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| backend/handler/metadata/playmatch_handler.py | Broadens provider mapping, refactors lookup_rom to populate all known provider IDs, normalizes enum casing, and updates manual-match/submission helpers to iterate the new mapping. |
| backend/handler/scan_handler.py | Replaces IGDB-only Playmatch gate with a multi-source check, passes the Playmatch result into Moby/SS/Launchbox/SGDB fetchers, and uses returned IDs as direct lookup hints. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Explain the changes or enhancements you are proposing with this pull request.
Playmatch recently expanded its supported
MetadataProvidertoIGDB, SteamGridDB, ScreenScraper, MobyGames, LaunchBox, EmuReady, OpenVGDB. This PR removes theIGDBgate and forwards every provider id Playmatch returns into the matching fetch function, the same wayigdb_idwas already used.When
PLAYMATCH_API_ENABLED=trueand at least one Playmatch-supported source (IGDB, MobyGames, ScreenScraper, LaunchBox, SteamGridDB) is enabled, the scan handler now runs Playmatch on hash and uses each returned id as a direct lookup hint for the corresponding metadata source. No platform-level external id is required, since Playmatch matches by file hash.Disclosure
I am not a Python developer and am not very familiar with the RomM codebase. I used Claude to analyze the existing Playmatch integration and to help write the extension of playmatch to other metadata providers. I reviewed the result before submitting.
Checklist
Please check all that apply.
Screenshots (if applicable)