mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
- Recognize Amazon Music in learned sources (classifyAsAmazon) and AddSource dispatch, using CredentialTypeToken (cs1) not cs3 - Exclude Amazon from default sources: an empty-credential Amazon entry triggers the speaker's AmazonController to fail JSON parsing with MUSIC_SERVICE_ACCOUNT_LOGIN_FAILED; Amazon must only appear once a real OAuth token is present - Merge missing defaults into stored sources at request time so devices with older Sources.xml still receive all current defaults - Fix source providers ETag: was time.Now().UnixMilli() (always new), now a content hash so If-None-Match/304 works correctly - Include default sources fingerprint in GetETagForAccount so adding a new default invalidates cached /full responses on speakers - Refactor createLearnedSource into classifyLearnedSource + classifyAsX helpers to reduce cyclomatic complexity below linter limit - Add regression test for two-device scenario matching production setup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>