mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-08 19:58:11 +00:00
The DLNA UDN from discovery carries a "uuid:" prefix (e.g. uuid:fa095ecc-...), but a SoundTouch STORED_MUSIC account is the bare UUID plus /0 (the speaker's /sources reports the bare form). The mismatch made the player Library tab show an "Add" button for an already-registered server, and an Add via the UI would have registered a wrong "uuid:.../0" account. Normalize (strip "uuid:") when mapping discovery results to the DTO and when building the account in HandleAddLibraryServer, so the LAN list and the registered list agree and Add builds the correct account. Verified live: discover now returns the bare UDN, matching /sources. Also populate the previously-unset MediaServer.Address from the ContentDirectory control URL host. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>