mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
SGDB's url_cover used to clobber whatever the artwork priority loop picked, which meant user-set priorities (e.g. libretro > sgdb) and manually uploaded covers were silently overridden. SGDB now only replaces the current url_cover when it outranks every other source that produced one under SCAN_ARTWORK_PRIORITY, and never over a manual cover preserved on UPDATE/UNMATCHED scans. Default artwork priority gains sgdb at the top so existing "SGDB wins" behavior is preserved for default configs. On the /search/roms endpoint, libretro is now an enrichment source alongside SGDB instead of a primary match source: it decorates entries resolved by IGDB/Moby/SS/Flashpoint/Launchbox with libretro_id and libretro_url_cover, mirroring how SGDB works. get_matched_roms_by_name is removed from the libretro handler since nothing else calls it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>