mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
* fix(export): encode filenames in ROM content URLs
* refactor(export): share one ROM content URL builder (pr-ready: code-review)
Move the quoted get_rom_content URL into utils.urls.rom_content_url and use it
from both exporters and the feeds. Match the test route to the real
{file_name} converter and drop an unused fixture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(export): share the ROM file URL builder too (pr-ready: simplify)
Move feeds' romfile download URL into utils.urls next to rom_content_url,
with the same encoding. Resolve the test's URLs against the real app router
and drop the branching that re-checked local paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(urls): cover the ROM and ROM file content URL builders (pr-ready: review-polish)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(export): match URL re-exports by ROM id and decode URL paths on import
A URL-mode gamelist or Pegasus export never matched its own earlier entries,
so each re-export appended every game again. Entries whose path is a RomM
content URL are now matched by the ROM id it carries, which also covers
unencoded URLs and other hostnames from older exports. The gamelist importer
decodes a URL path's last segment before matching it to a file name. Both
exports pass visibility=UNRESTRICTED explicitly, since they write the
library's shared metadata file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* style: format romfile_content_url
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>