Files
romm/backend/utils
Marcello Pichini 38543d9bde fix(streaming): offer disc sheets, not their tracks, as stream discs (#5710)
* fix(streaming): offer disc sheets, not their tracks, as stream discs

The start-disc picker and disc-swap dialog only treated .cue as a disc
sheet, so .gdi, .ccd and .mds sets listed their raw tracks, which the
backend rejects. Pick discs the way utils/m3u.disc_files does.

Fixes #5709

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(streaming): keep patches and variants out of the disc lists

The start-disc list now drops patch files by extension, as disc_files
does, and the swap dialog lists only the base game's discs, as
playlist_files does, so neither offers a file the backend rejects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* pr-ready: code-review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* pr-ready: simplify

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* pr-ready: review-polish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* pr-ready: prose

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(streaming): order stream discs by disc number

The backend's disc_files sorts by the disc tag, so a set of ten or more
discs listed Disc 10 before Disc 2 in the start and swap pickers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(streaming): offer no disc pick before the first heartbeat

Patches are recognised by the heartbeat's supported extensions, which are
empty until a heartbeat lands, so a root-level patch showed up as a disc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(streaming): decide the disc swap from the disc sent with the claim

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
2026-11-21 16:37:29 -05:00
..
2026-07-06 22:17:56 -04:00