Skip to content

Check the provider group against league tags when classifying a channel (#191) - #272

Merged
Jumpstile merged 1 commit into
mainfrom
fix/category-group-league-tag
Nov 17, 2026
Merged

Jumpstile merged 1 commit into
mainfrom
fix/category-group-league-tag

Conversation

@Jumpstile

Copy link
Copy Markdown
Owner

Part of #191 (Phase 1 guide truth, Milestone 1).

  • Root cause: the classifier checked the provider group only against category aliases and checked league tags (NHL, MLB, NBA...) only against the channel name. MLB, NBA and NFL classified only because their channel names carry the league word; NHL game feeds and channels with an empty name did not.
  • Fix: the group text is also checked against the league tags (+3 lines). A name word and a group word that disagree still give a conflict and no category. Unknown stays unknown. No team lists.
  • On a real 404-channel lineup copy (read only; no stream URLs or provider details copied): hockey channels 1 to 16, high-confidence channels 1 to 91 (name and group now agree), unknown 157 to 142, and no channel that already had a category changed category.
  • Tests (pwsh 7): three new tests in CategoryReport (NHL game feed and empty name give hockey; a conflicting group gives no category; MLB, NBA and NFL unchanged) plus OneGuide and ModuleManifest tests all passed, 0 failed. Not tested: the full suite, Windows PowerShell 5.1, the sealed-candidate path.
  • Frozen contracts untouched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NzHAcjThVoUGWWfXrYWsNh

…el (#191)

The channel classifier checked the provider group only against category aliases and the league tags (NHL, MLB, NBA...) only against the channel name, so an NHL game feed such as a team-versus-team channel in the NHL group, or a channel with an empty name, got no category. The group text is now also checked against the league tags. A name word and a group word that disagree still give a conflict and no category; unknown stays unknown. On a real 404-channel lineup copy, hockey channels went from 1 to 16 and no channel that already had a category changed it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NzHAcjThVoUGWWfXrYWsNh
@Jumpstile
Jumpstile merged commit e094721 into main Nov 17, 2026
11 checks passed
@Jumpstile
Jumpstile deleted the fix/category-group-league-tag branch November 17, 2026 12:09
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.

1 participant