Skip to content

feat: Add channel alias support, debug export, and improve tag handling#2

Open
RedShieldArr wants to merge 1 commit into
PiratesIRC:mainfrom
RedShieldArr:main
Open

feat: Add channel alias support, debug export, and improve tag handling#2
RedShieldArr wants to merge 1 commit into
PiratesIRC:mainfrom
RedShieldArr:main

Conversation

@RedShieldArr
Copy link
Copy Markdown
Collaborator

feat: add alias-aware matching, debug export, and ignored-tag expansion

Improve channel matching quality and provide deeper debug visibility.

  • Add premium channel alias support

    • Load aliases from country JSON databases
    • Match against aliases and map back to canonical channel names
    • Expand UKTV alias coverage in UK channel data
  • Add Debug Match Export action

    • Export detailed matching diagnostics to CSV
    • Include OTA detection, normalized queries, and fuzzy match stages
    • Add setting to control top N fuzzy candidates in debug output
  • Improve ignored tag handling

    • Add shared ignored-tag expansion helper
    • Support bracketed, parenthesized, and bare tag variants from one entry
    • Apply consistently across rename and category workflows
  • Improve Unicode matching behavior

    • Preserve accented names during normalization for better matching
    • Keep accent handling in the dedicated normalization pipeline
    • Correct related normalization comment text
  • Update documentation

    • Document Debug Match Export action and debug-top-N setting
    • Clarify ignored-tag auto-expansion behavior
    • Expand CSV export format section with debug export details

Major enhancements to matching accuracy and debugging capabilities:

- Add channel alias support for better matching flexibility
  * Load and match against channel aliases from JSON files
  * Map matched aliases back to canonical channel names
  * Add comprehensive UKTV channel aliases (Dave, Gold, Drama, etc.)

- Implement debug export functionality
  * New Debug Match Export (CSV) action with detailed matching stages
  * Configurable top N fuzzy match candidates per channel
  * Export shows OTA detection, tag extraction, and all fuzzy matching stages
  * Includes normalized queries and stage-by-stage candidate scores

- Improve tag handling and normalization
  * Auto-expand ignored tags to bracket/parentheses/bare versions
  * Single [HD] tag now matches [HD], (HD), and HD automatically
  * Fix Unicode handling by removing premature non-ASCII stripping

- Fix Unicode encoding in UK_channels.json
  * Properly encode special characters as JSON unicode escapes (ä, ü, ö, é)
  * Maintain JSON compatibility across systems

- Update documentation
  * Document debug export action and settings
  * Expand ignored tags description with auto-expansion details
  * Add detailed CSV export format documentation
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