Commit Graph

54 Commits

Author SHA1 Message Date
Georges-Antoine Assi
7d844c735d add miximage v2 support gamelist 2026-07-25 09:13:39 -04:00
Georges-Antoine Assi
6666019ce5 Stop duplicating fanart and title_screen into screenshots
ScreenScraper scraping added the fanart and title-screen URLs to
url_screenshots even though the same images are persisted to their
dedicated fanart/ and title_screen/ media folders, downloading and
storing every image twice. Restrict url_screenshots to the actual
screenshot media type; the dedicated media still renders in the artwork
gallery. The gamelist handler had the same pattern with title_screen
and gets the same fix.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 16:47:22 -04:00
Georges-Antoine Assi
8bf7d18afe cleanup 2026-06-18 11:48:51 -04:00
Georges-Antoine Assi
a38ebe29b5 Preserve custom name_sort_key; gate derivation on "still derived"
Drop the name_sort_key_custom flag/migration in favour of a flagless rule: a
key is "custom" when it no longer equals compute(name). Apply that consistently
across all three write paths so a manual sort key survives renames while a
derived key keeps following the name:

- @validates re-derives on name assignment only when the stored key still
  matches the derived value; direct name_sort_key assignment stores a
  normalized custom key (or reverts to derived when cleared). Handles both
  kwarg orders at construction.
- update_rom mirrors the same check for the bulk update() path it bypasses.
- The edit endpoint only writes the key when the user actually changed the
  field, delegating the untouched case to update_rom.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 11:30:40 -04:00
Georges-Antoine Assi
cd19d723fa Merge sort_name into name_sort_key with custom-override flag
Collapse the separate `sort_name` column into `name_sort_key`, which is now
the single user-settable sort field: always normalized and indexed for fast
ordering, derived from `name` by default, and overridable. A new
`name_sort_key_custom` boolean marks user/metadata overrides so they survive
renames and rescans.

- Drop the `roms.sort_name` column; repurpose migration 0085 to add
  `name_sort_key_custom`.
- Derive the key via `@validates("name")` unless pinned custom; the edit
  dialog, unmatch flow, and ES-DE gamelist <sortname> set custom keys.
- update_rom / scan_rom keep the columns in sync explicitly (bulk update and
  construction bypass / reorder the validator).
- Frontend: edit field drives name_sort_key (empty when auto), api sends the
  override only when custom, regenerated types updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 10:34:21 -04:00
Georges-Antoine Assi
222f767b2a run fmt 2026-06-18 09:05:55 -04:00
copilot-swe-agent[bot]
280092d38a feat: add ES-DE sortname import support
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-05-31 13:37:39 +00:00
Georges-Antoine Assi
8af556ee46 run fmt 2026-05-24 14:07:45 -04:00
Georges-Antoine Assi
acc1e630b7 Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-24 14:05:58 -04:00
Georges-Antoine Assi
4d8c2ef54b Merge branch 'master' into copilot/fix-folder-tag-import-issue 2026-05-24 13:33:36 -04:00
Georges-Antoine Assi
e7bde8a190 simplify 2026-05-24 13:13:11 -04:00
Georges-Antoine Assi
5fdb69d53c fixes 2026-05-24 13:09:07 -04:00
copilot-swe-agent[bot]
03d869e859 Fix gamelist parsing with alternativeEmulator fallback
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-05-24 14:15:24 +00:00
copilot-swe-agent[bot]
9611ebedb4 Support folder tags in gamelist metadata import
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-05-24 14:11:01 +00:00
Georges-Antoine Assi
e7045446a8 run fmt 2026-05-15 21:01:33 -04:00
Entropy Engineer
4999214a92 Add comma-separated metadata attribute support to gamelist
Add comma-separated metadata attribute support to gamelist
2026-05-16 00:41:09 +05:00
Georges-Antoine Assi
a61ff81e22 Merge branch 'master' into gamelist-customize 2026-04-05 22:11:02 -04:00
Georges-Antoine Assi
6abf60b0fe last fixes 2026-04-03 11:49:32 -04:00
Georges-Antoine Assi
ec8583016b mega ton of fixes for 4.8 2026-04-03 10:54:31 -04:00
Vargash
f4c965be33 feat: add new export.gamelist.media.image configuration
also fix broken title_screen/miximage/physical key name usage
2026-03-31 11:16:40 +02:00
zurdi
ecf4ae542f fix: correct spelling of 'get_platform_fs_structure' in multiple files 2025-12-21 16:48:45 +00:00
Georges-Antoine Assi
9b0311def0 add type suppressions 2025-12-14 14:19:12 -05:00
Georges-Antoine Assi
fea6bb3617 validate path when fetching 2025-12-14 13:47:14 -05:00
Georges-Antoine Assi
9584ba9a37 handler can see colocated folders 2025-12-14 13:18:24 -05:00
Georges-Antoine Assi
76ac3fb376 changes from bot review 2025-11-19 18:55:10 -05:00
Georges-Antoine Assi
4b1b3f75c7 fix typing 2025-11-19 18:44:37 -05:00
Georges-Antoine Assi
67375fa5cd self cleanup 2025-11-19 18:38:51 -05:00
Georges-Antoine Assi
485cfc0e04 preparse the file for a platform 2025-11-19 18:32:30 -05:00
Georges-Antoine Assi
f7f67d3c3d populate rom specific paths separate 2025-11-19 18:28:07 -05:00
Georges-Antoine Assi
a418b7cf46 use platform ID 2025-11-19 18:07:43 -05:00
Georges-Antoine Assi
8fe435e0b4 Cache parsed gamelist.xml files on each scan 2025-11-19 18:00:12 -05:00
Georges-Antoine Assi
eb5e32ed78 [HOTFIX] Fix importing media from gamelist.xml 2025-11-10 17:06:20 -05:00
Georges-Antoine Assi
60bec042c7 Set image_url as cover_path option in gamelist.xml 2025-11-06 16:09:45 -05:00
Georges-Antoine Assi
80e40788c5 misc improvements from dan 2025-10-31 22:59:30 -04:00
Georges-Antoine Assi
e2c055f7e5 add logo and marquee paths 2025-10-30 15:33:35 -04:00
Georges-Antoine Assi
78bfdf0543 fixes from bot review 2025-10-24 19:13:13 -04:00
Georges-Antoine Assi
d928c9705f fix media storage for gamelistxml 2025-10-24 19:06:45 -04:00
Georges-Antoine Assi
463bb27ea9 Add config to store media on disk 2025-10-24 16:04:54 -04:00
Georges-Antoine Assi
bbade3e40e fix tests 2025-10-23 17:05:23 -04:00
Georges-Antoine Assi
0ccf644662 instead of storing alt covers add toggle to theUI 2025-10-23 15:58:00 -04:00
Georges-Antoine Assi
304aa24b56 changes from bot review 2025-10-23 13:36:11 -04:00
Georges-Antoine Assi
5873290f9a run trunk check 2025-10-23 11:20:56 -04:00
Georges-Antoine Assi
f919951a22 self code cleanup 2025-10-23 10:36:08 -04:00
Georges-Antoine Assi
cd907fcf23 display bezels 2025-10-22 20:21:31 -04:00
Georges-Antoine Assi
9344801ec6 fix types 2025-10-22 19:26:30 -04:00
Georges-Antoine Assi
5aa344b3ce select media format for scan 2025-10-22 19:08:42 -04:00
Georges-Antoine Assi
f1dac8270f pull all media in ssfr to db 2025-10-22 16:38:22 -04:00
Georges-Antoine Assi
2c873ac997 fix 3d box 2025-10-22 14:32:32 -04:00
Georges-Antoine Assi
290162e56b import media assets 2025-10-22 12:44:58 -04:00
Georges-Antoine Assi
313e74a4f9 fix resolving media path 2025-10-18 13:19:44 -04:00