From f8b008f514aad4f6e2e0996876037e59c390565a Mon Sep 17 00:00:00 2001 From: PiratesIRC Date: Sun, 28 Jun 2026 16:25:41 -0500 Subject: [PATCH] Fix Channel-Maparr FXM alias: drop redundant "FXM" canonical The rebrand-alias port added both "FXM" and "FX Movie Channel" as canonicals with identical variants. Channel-Maparr inverts the alias map into a variant->one-canonical reverse index, so the redundant "FXM" key won the "fxm" lookup and shadowed the real channel-DB name "FX Movie Channel" -- a stream "FXM" missed the "FX Movie Channel" channel. FXM is the abbreviation, not its own channel, so keep only "FX Movie Channel" (with FXM as a variant). "US: FXM HD" now aliases to "FX Movie Channel" at 100. Lineuparr/EPG-Janitor iterate the map by lineup name (not a reverse index), so their dual keys don't collide and are left unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01N2rpwFn3AHoNvsbTrEwgwd --- Channel-Maparr/aliases.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Channel-Maparr/aliases.py b/Channel-Maparr/aliases.py index ba55a68..3cad266 100644 --- a/Channel-Maparr/aliases.py +++ b/Channel-Maparr/aliases.py @@ -183,8 +183,10 @@ # Rebrand bridges surfaced by the channel<->stream alias miner (ported from # Lineuparr's proven entries, 2026-06-28): new<->old brand names the normalizer # cannot derive (Fox Movie Channel->FXM, EPIX->MGM+, DIY->Magnolia, the HBO - # multiplex renames, MoreMax<->Cinemax Hits). - "FXM": ["FXM", "FX Movie Channel", "FXMovie", "Fox Movie Channel", "FXM Retro"], + # multiplex renames, MoreMax<->Cinemax Hits). NOTE: unlike Lineuparr (which iterates + # the map by lineup name), Channel-Maparr inverts it to a variant->one-canonical + # reverse index, so a redundant "FXM" canonical would win the "fxm" key and shadow + # the real channel-DB name. Keep only the real name "FX Movie Channel". "FX Movie Channel": ["FXM", "FX Movie Channel", "FXMovie", "Fox Movie Channel", "FXM Retro"], "MGM+": ["MGM+", "MGM Plus", "MGM+ East", "EPIX", "Epix", "EPIX 1"], "Magnolia Network": ["Magnolia Network", "Magnolia", "DIY Network", "DIY"],