Skip to content

Keep channels with programmes out of the missing group when the tvg-id has spaces or symbols (#191) - #275

Open
Jumpstile wants to merge 1 commit into
mainfrom
fix/guide-evidence-hash-id
Open

Jumpstile wants to merge 1 commit into
mainfrom
fix/guide-evidence-hash-id

Conversation

@Jumpstile

Copy link
Copy Markdown
Owner

Part of #191 (Phase 1 guide truth) and #175 step 8. Follow-up to the evidence builder (#274).

  • Problem: the existing evidence builder rejects tvg-ids with spaces or symbols, so on a real lineup 10 channels that DO have guide programmes were counted as missing.
  • Fix, in the mapper only: such an id gets a stable reference made from a hash of the id (existing Get-ChannelForgeDomainHash); programmes are still looked up by the original id. Empty ids unchanged. The unreachable InvalidGuideId branch is removed. Builder, schemas, readiness and scorecard untouched.
  • Real lineup copy (read only; raw ids not written anywhere): exactly 10 channels move from Unresolved to SafeCandidate. Availability stays Review because the rest truly have no programmes. The helper's own simple parse gave 83 to 73 unresolved, not the 72 to 62 from the earlier run; the difference comes from its parser and is not verified.
  • Tests (pwsh 7): GuideEvidenceFromPlaylist (6, two new), ModuleManifest and GuideQualityScorecard all passed, 0 failed. Not tested: full suite, Windows PowerShell 5.1.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NzHAcjThVoUGWWfXrYWsNh

…d has spaces or symbols (#191)

The evidence builder only accepts plain ids, so real tvg-ids with spaces or symbols fell back to a no-reference record and showed as missing even when the guide had programmes for them. The mapper now gives such an id a stable reference made from a hash of the id (existing domain hash helper); programmes are still looked up by the original id. Empty ids are unchanged. The builder and every contract are untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NzHAcjThVoUGWWfXrYWsNh
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