Skip to content

dbserver: serve Delivery Info's own fields - #195

Merged
vynulldev merged 1 commit into
mainfrom
delivery-fields
Nov 20, 2026
Merged

vynulldev merged 1 commit into
mainfrom
delivery-fields

Conversation

@vynulldev

Copy link
Copy Markdown
Owner

What & why

Delivery Info (0x2602) has four rows of its own: the composer, the delivery comment, the lyricist, and DeliveryControl with the ISRC. Vynull imported none of them except the composer's name, and sent all four empty. link-spec records rekordbox's rows and limits in SONG_INFO_SIBLINGS_ORACLE.md ("Delivery Info rows" and "Delivery-only fields and limits").

Changes:

  • Import: the dump and a master.db import bring djmdContent's ComposerID, Lyricist, DeliveryComment, DeliveryControl and ISRC onto the track.
  • Delivery Info rows:
    • Composer: its ID, kept even when no artist has it (a dangling 999999 stays), and its name, cut to 127 UTF-16 units.
    • Lyricist: the track's ID and the text, cut to 127 units.
    • Delivery comment: the track's ID and the text, cut to 255 units.
    • ISRC: cut to 255 units, with argument 8 set when DeliveryControl is "ON" in any case ("OFF", "Off", empty and null clear it).
    • Split surrogate pairs: a cut that splits one leaves U+FFFD, which is what rekordbox's cut shows on the wire.

Nothing else changes: these fields only appear in Delivery Info.

Tests: TestDeliveryInfoFields checks each field and limit, a dangling composer with a split surrogate pair, and the ISRC row's argument 8 on the wire. It uses the new track fields, so it doesn't build on main.

Conformance against main, on the default-settings fixtures: 3,676 to 3,682 of 4,250 cases exact (+6, none lost): song-info-delivery-boundaries +2 and song-info-delivery-wide-strings +4. The other cases in those suites now carry the same field values but differ in row order: rekordbox cycles Delivery Info's rows through four permutations by its internal list state, which Vynull deliberately doesn't emulate.

No hot path changes: Delivery Info builds its 13 rows per request as before.

Build, vet, gofmt, all tests, the race detector on the dbserver and the library, and the e2e suite pass.

Hardware testing

  • Tested on: not tested. The only decks available, CDJ-2000NXS2s, never request Delivery Info: there are no 0x2602 requests in any of the 17 deck-test logs from recent branches. The change only fills rows that request returns.

Checklist

  • go build ./..., go vet ./..., and go test ./... pass
  • gofmt -l . is clean
  • New source files carry an SPDX header (GPL-3.0-or-later)
  • Tested on real hardware (deck + firmware noted above), or this change doesn't affect deck behaviour
  • I agree my contribution is licensed under the project's GPLv3

Delivery Info (0x2602) has four rows of its own: the composer, the
delivery comment, the lyricist, and DeliveryControl with the ISRC.
Vynull imported none of them except the composer's name, and sent all
four empty.

A master.db import now brings djmdContent's ComposerID, Lyricist,
DeliveryComment, DeliveryControl and ISRC, and Delivery Info serves
them as rekordbox does (link-spec SONG_INFO_SIBLINGS_ORACLE.md,
"Delivery-only fields and limits"): the composer's ID, kept when no
artist has it, and its name and the lyricist cut to 127 UTF-16 units;
the delivery comment and the ISRC to 255; and the ISRC row's argument
8 set when DeliveryControl is "ON" in any case.
@vynulldev vynulldev added the enhancement New feature or request label Nov 19, 2026
@vynulldev
vynulldev merged commit b713119 into main Nov 20, 2026
1 check passed
@vynulldev
vynulldev deleted the delivery-fields branch November 20, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant