Files
Bose-SoundTouch/pkg
Tobias GesellchenandClaude Sonnet 5 4d6bf9e731 refactor(tunein): unify the type-dispatch switch, surface unrecognized types instead of dropping or guessing
tuneInSearchSection, TuneInSearchNext, and tuneInProfileNavItem each
implemented the same Station/PlayItem/Topic/Program/Profile dispatch,
but disagreed on what to do with anything else: the first two had no
default case and silently dropped the item entirely (hiding real
content with no trace it existed), while the third treated any
unrecognized type as directly playable with no indication that was a
guess.

Consolidated into one tuneInClassifyItem, used by all three, that
takes a middle path instead of picking one side: an unrecognized type
still gets a playback link (nothing is silently hidden), but its
Subtitle is marked ("Unrecognized type, may not play") so a playback
attempt that doesn't pan out reads as an unsupported content type
rather than a mystery broken link. The player UI (TuneInBrowser.js)
already renders Subtitle verbatim, so this is visible to users, not
just present in the API response.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 14:24:10 +02:00
..