* fix(ui): keep line breaks in the game summary
Normalize CRLF and bare CR to LF and render the summary with
white-space: pre-line so multi-line summaries keep their structure.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(metadata): turn HTML in provider summaries into plain text
Add utils.html_text.html_to_text, a parser-based helper that drops known
HTML tags, maps paragraphs, line breaks and list items to newlines, and
unescapes entities. Unknown tags such as "<Start>" stay as literal text.
Moby, ScreenScraper, Steam, Flashpoint and LaunchBox summaries go through it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(metadata): separate table cells and keep bullets on their text
Addresses Greptile review on #5413: adjacent td/th cells now get a space
between them, and a list item wrapping its text in a paragraph keeps the
bullet on the same line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(platforms): split arcade aliases into per-emulator-family slugs
Give MAME, AdvanceMAME, FBNeo, FBA, Daphne, Singe and the arcade boards
that need their own emulator (NAOMI/NAOMI 2/NAOMI GD-ROM, Model 2/3,
Hikaru, Triforce, Lindbergh, Namco System 246/3xx, Gaelco, ...) their own
slugs with verified provider IDs. Providers without a dedicated entry fall
back to their Arcade platform via arcade_fallbacks(). MAME-only boards
(CPS1-3, System 16/32, Model 1, Namco 22) stay aliases of arcade.
Refs #5272
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): code-review pass on arcade slugs
- Retry IGDB on unmatched scans for every platform IGDB resolves, not
just slugs in IGDB_PLATFORM_LIST.
- Resolve config binding/version values through the alias table, so a
binding to a retired slug (cps2, model1, ...) still lands on a platform.
- Alias the Batocera `typex` folder to type-x.
- Build provider id->slug reverse maps before merging Arcade fallbacks.
- Share one MAME title lookup between base_handler and libretro.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(platforms): simplify pass on arcade slugs
- Alias the three RomM-keyed IGDB versions inside IGDB_PLATFORM_VERSIONS,
dropping IGDB_VERSION_SLUGS and _version_slug.
- Derive EmulatorJS arcade entries from ARCADE_SET_PLATFORMS.
- Remove the unused provider id->slug reverse maps, so the Arcade
fallback merge no longer has an ordering constraint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(platforms): humanizer pass on arcade slug comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): settle arcade slug review decisions
- Migration 0154 moves platforms still on a retired MAME-only board slug
(cps1-3, model1, system16, system32, system-32) to arcade, so no row
carries a slug the enum no longer has.
- MAME shortname expansion keys off the RomM slug via
MAME_SHORTNAME_PLATFORMS instead of per-provider arcade ids, so Daphne,
Singe, Type X and Lindbergh sets are no longer read as MAME sets. Neo Geo
now expands at ScreenScraper too, as it already did at IGDB and Moby.
- fba offers fbneo before the FinalBurn Alpha CPS cores.
- AdvanceMAME leaves the WebRcade feed; EmulatorJS and WebRcade share
PLAYABLE_ARCADE_SET_PLATFORMS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): code-review pass (xhigh) on arcade slugs
Verify arcade-board BIOS files against the known list's arcade entries,
and make migration 0154 match retired slugs case-insensitively.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(platforms): simplify pass on arcade slugs
Apply IGDB family overrides once in get_platform instead of on each
return path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(platforms): use a slug with no shipped icon
singe now ships an icon, so the no-icon prefetch test needs a slug that never will.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(platforms): add a teknoparrot arcade slug
TeknoParrot runs PC-based arcade boards outside the MAME/FinalBurn family,
so its folder gets its own platform (RetroBat and ES-DE both use
`teknoparrot`). Providers fall back to their Arcade entry, MAME shortname
expansion skips it, and it gets a placeholder icon copied from `arcade`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(platforms): give each arcade-family icon its own marquee title
Redraws the ARCADE marquee on the copied cabinet icons with each
platform's name, in the Bungee typeface with the original inline and
extrusion styling. Sega boards use Sega blue, Namco systems Namco red,
and Type X Taito blue; the rest keep the original amber.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): code-review pass (xhigh) on arcade slugs
Neo Geo BIOS lives under arcade in the known BIOS list, so map
neogeoaes and neogeomvs there too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(platforms): simplify pass on arcade slug tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
The optional binding used to no-op in silence: an absent sigil was
indistinguishable from a file with no title id. `SigilService.is_enabled`
plus `FILESYSTEM.TITLE_ID_EXTRACTION_ENABLED` on the heartbeat put the
feature on the same footing as every other optional capability, and give
a client of `PUT /roms/{id}/identity` a way to ask whether the server
reads binaries at all.
The extracted id also reaches the layer that already matches on Switch
product ids. Until now that layer could only scrape one out of the
filename, which made `embed_switch_title_ids` the de facto transport:
users had to let RomM rewrite their filenames for matching to improve.
`switch_product_id` prefers the id read from the binary, so extraction
helps everyone with the binding and the rename stays cosmetic.
MobyGames' `get_rom` takes the rom, like its IGDB and ScreenScraper
siblings, and the product-id lookup now happens only on Switch.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The MobyGames handler pre-encoded search terms with urllib's quote()
before passing them to MobyGamesService.list_games(), which encodes the
query itself via yarl's with_query(). Titles containing special
characters were therefore double-encoded and never matched:
'Sonic & Knuckles' -> title=Sonic+%2526+Knuckles
'... World + Bowser's Fury' -> title=...+%252B+Bowser%2527s+Fury
Pass the raw (unidecoded) term and let the service layer encode it
exactly once, matching how the ScreenScraper handler already works.
Adds regression tests for both the scan path (_search_rom) and the
manual-search path (get_matched_roms_by_name).
Same bug class as reported for ScreenScraper in #3467.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pattern.search() takes pos as its second argument, not flags, so passing
re.IGNORECASE (value 2) started the serial scan at index 2. Filenames
that begin with the serial itself (e.g. SCUS-94163.bin) never matched,
and the PS1/PS2/PSP serial index resolution was silently skipped in the
IGDB, MobyGames, and ScreenScraper handlers.
The regex already matches both cases via [a-zA-Z], and the serial is
uppercased before the Redis lookup (#3621), so the intended flag added
nothing. Drop the stray argument so serials are found anywhere in the
filename, including at the start.
Co-Authored-By: Claude <noreply@anthropic.com>