Skip to content

Correct more stations from the United States, from radio-database - #1627

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

frenck merged 1 commit into
mainfrom
frenck/corrections-us-2

Conversation

@frenck

@frenck frenck commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Breaking change

None. Station data only.

Proposed change

The second round of radio-database corrections, after #1606 to #1622. The first round skipped merge requests whose files it could not read: JSON with comments or trailing commas, files without a .json extension or outside src/, and branches that no longer exist, whose content still lives in the merge request diff. 14 changes and 1 deletion for stations from the United States, in 7 files:

  • us/chilltrax.json: name, logo, tags, region, homepage, languages
  • us/dublab.json: name, logo, region, languages
  • us/etx-fm.json: tags, region, languages
  • us/katm1033.json: logo, tags, region, languages
  • us/pgcr.json: logo, region, languages
  • us/wemu-fm.json: stream, logo; 1 deleted
  • us/wrpi.json: name, homepage, tags, region, languages

Every correction passed the checks of #1605, and a few more learned along the way:

  • A new stream, logo or homepage responds, with audio or an image. A working stream only moves within its own domain, and never to HLS, a playlist, or a host name with an IP address in it.
  • No https to http downgrade, no cosmetic change, and no new homepage that redirects back to the old one.
  • A working logo is only replaced by one from the station's own site, and never by a favicon.ico or a hotlinked file from someone's GitHub repository.
  • Region and language codes exist (pycountry), tags are lowercase without junk like fm or a frequency, and tags or languages are never replaced wholesale.
  • Coordinates are left alone: Home Assistant does not use them, and some proposals were plainly wrong.
  • A duplicate is only deleted when another record with the same stream URL stays, in the same country, with more votes and more clicks, and when the duplicate itself is barely played (3 clicks a day at most). Home Assistant saves stations by UUID, so deleting a record people use would break their favorites.

Every correction names the merge request it comes from in its 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

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.

Port the radio-database merge requests for stations from the United States that the first round
could not read, and that hold up against the live API.
@frenck frenck added the new-feature New features or options. label Oct 2, 2026
@frenck
frenck merged commit 5d15e69 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