mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
Following the review on the PR, CD audio extraction is now only a
config.yml option (scan.cd_audio.extract) that runs after a scan:
- Remove the Soundtrack subtab's Extract CD audio button, the
GET/POST /api/roms/{id}/soundtracks/cd-audio endpoints, their response
schemas, the handler's status probe and the five rom.* strings.
- The scan collects the entries whose files it found new or re-read
(a quick scan's refresh that changed something, or a full scan's file
rebuild) and queues only those with a disc image. A complete rescan
covers discs already in the library, which the setting now says.
- The job calls extract_cd_audio directly: tracks already present are
skipped without encoding, and a loose sheet or playlist-listed disc is
logged and skipped. When a scan starts mid-job, the rest is queued
again to run after that scan, whether it succeeds or not.
- The CD audio tests move from tests/endpoints/roms/ to tests/handler/
and call the handler; the endpoint-only probe and scope tests go. The
library fixtures they share move to tests/conftest.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSvProqsBrUknEAs4nNKDs