Skip to content

Return the stream URL from station_click - #1561

Merged
frenck merged 1 commit into
mainfrom
frenck/station-click-url
Oct 1, 2026
Merged

frenck merged 1 commit into
mainfrom
frenck/station-click-url

Conversation

@frenck

@frenck frenck commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Breaking change

None. station_click() used to return None, so callers that ignore the result (like Home Assistant) keep working as is.

Proposed change

station_click() registers a click through /json/url/<uuid>. According to the API docs, that endpoint also returns the stream URL of the station, which is exactly what a caller needs at that moment: the click is meant to be sent when playback starts.

The method threw that response away. It now returns the stream URL.

Type of change

  • Dependency or tooling upgrade
  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Deprecation (replaces or removes a feature, with a migration path)
  • Breaking change (a fix or feature that changes existing behavior)
  • Code quality, refactor, or test-only change
  • Documentation only

Additional information

  • This PR fixes or closes issue: fixes # None
  • This PR is related to: None
  • Link to a separate documentation pull request: None

Checklist

  • I fully understand the code in this pull request and can explain every line, including any AI-assisted changes.
  • The change is covered by tests, and poetry run pytest passes locally. A pull request cannot be merged unless CI is green.
  • poetry run prek run --all-files passes (lint, format, and type checks).
  • No commented-out or dead code is left in the pull request.

The url endpoint that registers the click also returns the stream URL of
the station. Return it instead of throwing it away.
@frenck frenck added the new-feature New features or options. label Oct 1, 2026
@frenck
frenck merged commit 788e203 into main Oct 1, 2026
31 checks passed
@frenck
frenck deleted the frenck/station-click-url branch October 1, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New features or options.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant