Skip to content

Delete stations whose streams are long dead - #1632

Merged
frenck merged 1 commit into
mainfrom
frenck/corrections-dead-streams
Oct 2, 2026
Merged

frenck merged 1 commit into
mainfrom
frenck/corrections-dead-streams

Conversation

@frenck

@frenck frenck commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Breaking change

None. Station data only.

Proposed change

Many open radio-database merge requests ask to delete stations without a duplicate to point at. A dead stream can be a hiccup, so a single failed test is not enough. These 60 pass two checks:

  • Radio Browser's own daily checks have not seen the stream play for at least 90 days (lastcheckok is false, and lastcheckoktime is older than 90 days, or missing).
  • Our own test fails as well: neither the stream URL nor the resolved one answers with audio.

A station that has not played for three months does not work as a favorite either, so deleting it breaks nothing that still worked. It does take it out of browsing and search, where people still try them: together they get 24 clicks a day.

60 deletions, in 12 files:

  • af/dead-streams.json: 5 deleted
  • br/dead-streams.json: 3 deleted
  • ca/dead-streams.json: 1 deleted
  • cn/dead-streams.json: 21 deleted
  • cz/dead-streams.json: 1 deleted
  • de/dead-streams.json: 10 deleted
  • fi/dead-streams.json: 13 deleted
  • hk/dead-streams.json: 1 deleted
  • hu/dead-streams.json: 1 deleted
  • id/dead-streams.json: 1 deleted
  • mx/dead-streams.json: 1 deleted
  • us/dead-streams.json: 2 deleted

Every correction says since when its stream is dead, and names the merge request that proposed the deletion. Left out: 7 stations dead for less than 90 days, and 174 that the API sees playing, which some merge request wanted deleted for another reason.

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: Ship corrections for station data #1604, radio-database merge requests 106, 128, 129, 137, 160, 216, 314, 348, 363, 365, 366, 374, 396
  • 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.

Delete the stations radio-database merge requests asked to delete that
have not played for at least 90 days by Radio Browser's own checks, and
that fail our own test of their stream as well.
@frenck frenck added the new-feature New features or options. label Oct 2, 2026
@frenck
frenck merged commit ec407c5 into main Oct 2, 2026
31 checks passed
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