Files
romm/backend/utils
Sam Dornan 3d98d227fd refactor(cd-audio): simplify the extraction handler
- Register once in a `finally`, with `_register` logging and returning
  False, instead of two copies of the try/log block.
- One `UploadConflictException` arm in `_write_tracks` covers a track
  already extracted and one a concurrent run claimed first.
- `.cue` and `.gdi` share `_on_disk_names`, which points each track at its
  file's real name, rather than only the cue branch doing that.
- `_locate_files` stats each named file and lists the folder only for a
  name that missed or differs only in case, so a loose sheet no longer
  lists the whole platform folder.
- Return `CdAudioStatusSchema`/`CdAudioExtractionSchema` from the handler
  instead of dataclasses the endpoints copied field by field.
- Sort discs with the playlist's `disc_order` (now public) and name track
  prefixes from the file rows, without resolving paths.
- Reuse `utils.filesystem.CONTROL_CHARS`, add `flac_available()` and a
  `STEREO_SAMPLE_BYTES` constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSvProqsBrUknEAs4nNKDs
2026-09-28 22:47:05 +00:00
..
2026-06-28 21:48:50 -04:00
2026-07-06 22:17:56 -04:00