Georges-Antoine Assi
c2547ec68c
fix: model "no file on disk" once instead of per call site
...
Physical games encoded file-lessness as is_physical=True with
missing_from_fs=False, while every consumer asked the same question through
missing_from_fs alone. Each of those consumers was therefore wrong for a
physical game, and each would have needed its own is_physical rider.
Add Rom.has_file_on_disk, covering both reasons a rom has no file, expose it
on RomSchema, and route the file-dependent surfaces through it:
- The ES-DE and Pegasus exporters no longer emit entries whose path points at
the .physical sentinel folder.
- The device feeds gain a single _servable_roms() seam, so all three entry
points that enumerate roms drop the ones with no file rather than minting
download URLs for them.
- GET /roms/{id}/content answers 404 with a reason instead of falling through
to the generic "no files found".
- v2 gates Play, Download, copy-link and the QR share on the flag, in
useCanPlay and useGameActions rather than at each of the surfaces.
The is_physical exclusions in mark_missing_roms stay: they are what maintains
the invariant that a physical game is never flagged missing, and the one in
the missing filter keeps a stray flag away from the cleanup task that
hard-deletes.
Also translate the physical-game and barcode strings, which had been copied
into eleven locales as English.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-25 22:26:20 -04:00
..
2026-06-25 09:30:14 +00:00
2026-06-25 09:30:14 +00:00
2025-01-26 21:52:50 -05:00
2026-06-08 10:25:27 -04:00
2026-06-08 10:25:27 -04:00
2025-07-15 11:59:35 -04:00
2026-06-08 10:25:27 -04:00
2026-06-08 10:25:27 -04:00
2026-02-18 16:37:48 -05:00
2026-06-08 10:25:27 -04:00
2025-07-15 11:59:35 -04:00
2026-02-08 09:52:55 -05:00
2025-05-20 16:50:14 -04:00
2025-09-14 20:12:37 -04:00
2025-07-15 11:59:35 -04:00
2025-09-14 20:12:37 -04:00
2025-09-14 20:12:37 -04:00
2026-07-06 10:39:11 -04:00
2025-08-27 23:31:29 -04:00
2026-06-25 09:30:14 +00:00
2025-05-13 17:40:07 +00:00
2025-05-13 17:40:07 +00:00
2025-01-26 21:52:50 -05:00
2026-02-08 09:52:55 -05:00
2026-02-08 09:52:55 -05:00
2026-06-08 10:25:27 -04:00
2026-07-20 19:00:30 +00:00
2026-06-18 10:34:21 -04:00
2026-06-08 10:25:27 -04:00
2026-06-21 14:00:02 +00:00
2026-06-18 11:05:52 +00:00
2026-02-18 16:37:48 -05:00
2026-06-08 10:25:27 -04:00
2026-06-21 14:00:02 +00:00
2026-07-19 12:30:01 -04:00
2026-07-20 16:16:58 -04:00
2026-04-03 14:43:19 -04:00
2025-10-27 14:41:08 -04:00
2026-07-06 18:18:42 -04:00
2026-06-21 10:57:48 +09:00
2026-03-12 23:02:12 -04:00
2026-06-18 05:24:32 +09:00
2026-03-12 23:02:12 -04:00
2026-03-12 23:02:12 -04:00
2026-06-18 05:24:32 +09:00
2026-05-28 09:43:47 -04:00
2026-02-08 19:58:48 -05:00
2026-07-20 11:24:31 -04:00
2025-10-16 17:14:45 -04:00
2025-10-15 20:49:59 -04:00
2025-10-27 14:41:08 -04:00
2026-08-01 23:00:38 +00:00
2026-08-25 22:26:20 -04:00
2026-06-21 10:57:48 +09:00
2026-06-21 10:57:48 +09:00
2026-06-21 10:57:48 +09:00
2026-06-21 10:57:48 +09:00
2026-06-21 10:57:48 +09:00
2026-06-21 10:57:48 +09:00
2026-06-21 10:57:48 +09:00
2026-06-21 10:57:48 +09:00
2026-03-15 09:35:12 -04:00
2026-02-08 09:52:55 -05:00
2026-06-25 09:30:14 +00:00
2026-06-18 05:24:32 +09:00
2026-02-08 09:52:55 -05:00
2026-03-15 09:35:12 -04:00
2026-08-25 19:40:20 -04:00
2026-08-25 19:40:20 -04:00
2025-06-10 22:19:41 -03:00
2025-09-02 09:07:21 -04:00
2025-09-02 08:38:11 -04:00
2025-01-26 21:52:50 -05:00
2026-02-18 16:37:48 -05:00
2026-07-02 11:16:07 +09:00
2025-01-26 21:52:50 -05:00
2025-06-12 23:02:58 +00:00
2026-06-20 15:48:58 +00:00
2025-10-15 16:21:17 -04:00
2025-10-27 14:41:08 -04:00
2026-06-25 09:30:14 +00:00
2026-06-25 09:30:14 +00:00
2025-08-28 09:48:52 -04:00
2026-06-25 09:30:14 +00:00
2026-06-25 09:30:14 +00:00
2026-06-25 09:30:14 +00:00
2025-01-26 21:52:50 -05:00
2025-01-26 21:52:50 -05:00
2026-01-14 10:07:57 -05:00
2025-01-26 21:52:50 -05:00
2025-01-26 21:52:50 -05:00
2026-08-16 20:23:57 -05:00
2026-05-25 11:02:35 -04:00
2025-06-12 10:53:33 -04:00
2026-07-20 16:16:58 -04:00
2026-06-21 14:00:02 +00:00
2026-01-02 18:21:59 +00:00
2026-03-09 22:15:08 -04:00
2026-06-25 09:30:14 +00:00
2026-08-19 14:45:31 -04:00
2026-04-03 14:43:19 -04:00
2025-01-26 21:52:50 -05:00
2026-07-02 11:16:07 +09:00
2026-07-02 11:16:07 +09:00
2026-07-23 15:32:32 +09:00
2026-07-23 15:32:32 +09:00
2026-07-23 15:32:32 +09:00
2026-07-23 15:32:32 +09:00
2026-07-23 10:58:53 -04:00
2026-07-20 16:16:58 -04:00
2025-11-26 15:19:45 -05:00
2026-03-10 01:56:47 +00:00
2026-03-10 20:48:49 +01:00
2026-04-03 14:43:19 -04:00
2026-06-25 09:30:14 +00:00
2026-06-25 09:30:14 +00:00
2026-07-23 15:32:32 +09:00
2026-06-25 09:30:14 +00:00
2026-06-25 21:49:00 +00:00
2026-06-25 21:49:00 +00:00
2026-06-25 21:49:00 +00:00
2026-06-25 09:30:14 +00:00
2026-06-25 09:30:14 +00:00
2026-08-25 20:19:05 -04:00
2026-02-18 16:37:48 -05:00
2026-07-20 19:00:30 +00:00
2026-03-22 15:48:56 -04:00
2026-03-22 15:48:56 -04:00
2026-03-22 15:48:56 -04:00
2026-03-22 15:48:56 -04:00
2026-04-06 21:53:49 -04:00
2025-04-24 16:40:14 +00:00
2025-06-10 22:19:41 -03:00
2026-03-12 23:02:12 -04:00
2026-03-09 22:15:08 -04:00
2026-06-25 22:42:51 +00:00
2026-05-29 20:54:32 -04:00
2026-08-25 19:40:20 -04:00
2026-08-25 19:40:20 -04:00
2026-08-25 19:40:20 -04:00
2026-06-29 11:29:12 +00:00
2026-01-03 17:42:18 -05:00
2026-08-08 11:44:13 -05:00
2026-08-01 18:10:16 -04:00
2025-09-15 10:28:32 -04:00
2026-01-14 10:07:57 -05:00
2026-05-28 09:43:47 -04:00
2026-01-14 10:07:57 -05:00
2026-01-03 17:42:18 -05:00
2025-07-15 11:59:35 -04:00
2026-08-06 12:38:35 -05:00
2026-03-12 23:02:12 -04:00
2026-02-08 09:52:55 -05:00
2025-01-26 21:52:50 -05:00
2025-11-26 15:19:45 -05:00
2026-07-20 16:16:58 -04:00
2026-06-21 14:00:02 +00:00
2026-07-20 16:16:58 -04:00
2026-02-08 09:52:55 -05:00
2026-07-20 11:24:31 -04:00
2025-10-21 14:17:47 -04:00
2025-10-15 20:49:59 -04:00
2025-10-27 14:41:08 -04:00
2026-06-18 11:05:52 +00:00
2025-09-07 19:20:46 -04:00
2026-04-11 22:57:20 -04:00
2026-07-20 19:08:01 -04:00
2026-05-25 16:25:33 +00:00
2026-08-25 22:26:20 -04:00
2026-02-08 09:52:55 -05:00
2026-02-08 19:58:48 -05:00
2026-07-02 11:16:07 +09:00
2026-03-08 18:34:58 -04:00
2026-06-21 14:00:02 +00:00
2026-04-03 14:43:19 -04:00
2026-04-06 21:53:49 -04:00
2026-04-06 21:53:49 -04:00
2026-02-08 09:52:55 -05:00
2026-07-06 18:18:42 -04:00
2026-03-15 09:35:12 -04:00
2026-07-06 18:18:42 -04:00
2026-04-06 21:53:49 -04:00
2026-03-15 09:35:12 -04:00
2026-03-22 17:17:14 -04:00
2026-03-22 17:17:14 -04:00
2025-01-26 21:52:50 -05:00
2025-10-27 14:41:08 -04:00
2025-10-15 16:21:17 -04:00
2025-08-28 09:48:52 -04:00
2026-03-15 09:35:12 -04:00
2025-01-26 21:52:50 -05:00
2025-10-07 10:21:02 -04:00
2026-03-12 23:02:12 -04:00
2026-07-02 11:16:07 +09:00
2025-10-16 12:25:05 -04:00
2025-10-15 20:49:59 -04:00
2025-10-27 14:41:08 -04:00
2026-07-24 14:21:35 +00:00
2026-06-08 10:25:27 -04:00
2026-06-17 13:41:07 +02:00
2026-06-25 09:30:14 +00:00
2026-06-25 09:30:14 +00:00
2026-06-21 14:00:02 +00:00
2026-06-25 21:49:00 +00:00
2026-06-18 14:20:54 +00:00
2026-06-21 14:00:02 +00:00
2026-06-08 10:25:27 -04:00
2025-07-25 17:52:05 -04:00
2026-07-20 16:16:58 -04:00
2025-10-15 16:21:17 -04:00
2025-10-27 14:41:08 -04:00
2025-01-26 21:52:50 -05:00
2025-01-26 21:52:50 -05:00
2025-01-26 21:52:50 -05:00
2025-01-26 21:52:50 -05:00