mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 17:16:16 +00:00
Hardware testing (ST10 FW27.0.6 + FRITZ!Box 6490) showed the previous raw-URL play modes do not play DLNA content: a raw stream URL sent as a LOCAL_INTERNET_RADIO location is rejected by the speaker (APServer "REJECT: TransportControl: Wrong Client", nothing plays). The native mechanism is STORED_MUSIC: register the server, then select a ContentItem carrying the media server's object ID as location. `library play` now takes --source-account (<UDN>/0) and --location (object ID from a browse), plus optional --name/--type/--art, and selects a STORED_MUSIC ContentItem with type="track" via SelectContentItem (so the type is set, which SelectStoredMusic does not do). It first checks /sources for a READY STORED_MUSIC entry with that account and, if absent, prints a ready-to-copy `account add-nas` hint and stops instead of failing opaquely. The old --url/--mode raw-URL flags are removed. Validated end to end: browse -> play -> now_playing source=STORED_MUSIC status=PLAY_STATE. The speaker streams from the media server directly; no AfterTouch proxy involved. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>