From ce959e05dac07d740a471d1f26ee6c6484f40a8c Mon Sep 17 00:00:00 2001 From: Jumpstile Date: Sat, 14 Nov 2026 16:30:02 -0500 Subject: [PATCH] fix: match PPV1-style names and near-echo placeholder titles in the event-channel detector (#175) Found on the real EPG Ripper and Jesmann US guides: PPV1 to PPV4 channels were not rated, and titles that echo the channel name with a small difference counted as real programmes. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01NzHAckAcs78Lu3rv8Gqgrf --- .../Get-ChannelForgeEventChannelCandidate.ps1 | 10 +++++++++- tests/unit/EventChannelCandidate.Tests.ps1 | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/ChannelForge/Private/Get-ChannelForgeEventChannelCandidate.ps1 b/src/ChannelForge/Private/Get-ChannelForgeEventChannelCandidate.ps1 index 6ef8a49..ec89b73 100644 --- a/src/ChannelForge/Private/Get-ChannelForgeEventChannelCandidate.ps1 +++ b/src/ChannelForge/Private/Get-ChannelForgeEventChannelCandidate.ps1 @@ -19,6 +19,11 @@ function Get-ChannelForgeEventChannelCandidate { foreach ($item in $Channel) { $name = & $normalize ([string]$item.DisplayName) $ppvHit = @(Find-ChannelForgeCategoryWord -Text $name -Registry $ppvWords -Property Aliases) + # The shared matcher is whole-word only; also accept ppv plus digits (PPV1, PPV2). Not SKYPPV. + if ($ppvHit.Count -eq 0) { + $ppvDigits = [regex]::Match($name, '(?