Skip to content

Add country-specific aliases for DO and PE (from #58, with review fixes) - #61

Merged
PiratesIRC merged 2 commits into
mainfrom
feat/do-pe-aliases
Sep 25, 2026
Merged

PiratesIRC merged 2 commits into
mainfrom
feat/do-pe-aliases

Conversation

@PiratesIRC

Copy link
Copy Markdown
Owner

This carries @taos15's commit from #58 unchanged, with authorship kept, plus one commit of review fixes. The fixes could not be pushed to the fork's branch from here, so they are in this pull request.

From #58

  • New DO_channels.json (Dominican Republic) and PE_channels.json (Peru).
  • COUNTRY_ALIASES entries for DO (94 channels) and PE (62 channels).

Review fixes (39d76df)

  • Removed DR_channels.json. It was DO_channels.json with country_code set to DR. The plugin tags every channel with its database code, and a DR: stream prefix is already read as DO. Measured on the Add country-specific aliases for DO and PE #58 branch by calling _channel_country_code: DO alone gives DO, DR alone gives DR, and both loaded together (Channel Database set to All) give no country for all 309 names. With DR selected and Restrict Matching To Same Country on, every Dominican stream would have been removed as foreign.
  • DO_channels.json: removed the second entry of Teleunión, Entelevisión and ESPN 2, each repeated under the HD category. There are now 306 entries, all unique.
  • aliases.py: the existing US entries are left as they are on main. Add country-specific aliases for DO and PE #58 had reformatted them with no change in value. Only the DO and PE sections are added. Loaded values checked: CHANNEL_ALIASES equals main, and COUNTRY_ALIASES equals Add country-specific aliases for DO and PE #58.

Known limit, not changed here

The country aliases apply only when Channel Database is set to exactly DO or PE. With All selected, _build_alias_map looks up COUNTRY_ALIASES["ALL"] and finds nothing. That is existing behaviour for every country.

Testing

The full suite passes (1559), scripts/validate_databases.py reports all 15 databases valid, and the publish audit is clean.

🤖 Generated with Claude Code

taos15 and others added 2 commits September 22, 2026 23:14
…nd aliases

Review fixes on top of the DO and PE aliases.

- Remove DR_channels.json. It was DO_channels.json with country_code DR.
  The plugin tags every channel with its database code, and a DR: stream
  prefix is already read as DO, so with Channel Database set to DR every
  Dominican stream looked foreign under Restrict Matching To Same Country,
  and with All the two files disagreed for all 309 names so the database
  country was dropped for each of them.
- DO_channels.json: remove the second entry of Teleunion, Entelevision and
  ESPN 2, each repeated under the HD category.
- aliases.py: keep the existing US entries as they were on main (they had
  been reformatted with no change in value) and add only the DO and PE
  COUNTRY_ALIASES sections. Loaded values checked equal to the original PR.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@PiratesIRC
PiratesIRC merged commit 3d068a1 into main Sep 25, 2026
6 checks passed
@PiratesIRC
PiratesIRC deleted the feat/do-pe-aliases branch September 25, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants