Fix Xbox 360 metadata matching - #51
Conversation
Xbox 360 games never reached IGDB because the platform map had no xbox360 entry, so searchQuery returned empty and identification stopped at "This platform is unsupported". - Map the xbox360 system to IGDB platform 12. - Strip trademark marks from search titles, since Xenia's recent.toml writes names such as "Dante's Inferno(TM)". - Add an Xbox 360 entry to the console catalog so the system has a display name and dedicated-source flag.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change adds Xbox 360 to the console catalog, maps it to IGDB platform 12, removes trademark symbols during title cleanup, and adds assertions for catalog and metadata behavior. ChangesXbox 360 support
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The Xbox 360 catalog and metadata mapping are supported by the inspected contracts, with no established merge-blocking defect. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Xbox 360 games from Xenia never reached IGDB.
GameMetadata::platformIds()had noxbox360entry, sosearchQuery()returned empty and identification stopped at "This platform is unsupported" before any request was made.Changes:
xbox360to IGDB platform 12 so the query is built.™/®/©) incleanTitle(). Xenia'srecent.tomlrecords names likeDante's Inferno™, and the mark was carried into the IGDB search string.ConsoleCatalogso the system has a display name ("Xbox 360") and is marked as a dedicated source.Tests:
metadataMatchingKeepsPlatformsAndEditionsnow assertsplatformIds("xbox360") == {12}and the platform filter in the query;consolePortalsDoNotMergeDifferentFilesasserts the catalog name and dedicated-source flag. Core suite: 201 passed, 0 failed, 1 skipped.Found while validating Xenia against a real Xbox 360 disc.
Summary by CodeRabbit
New Features
Bug Fixes