Skip to content

feat: Add regex extract mode and append suffix to EPG mapping#1014

Open
Warbs816 wants to merge 3 commits intom3ue:devfrom
Warbs816:feat/epg-mapping-append-suffix
Open

feat: Add regex extract mode and append suffix to EPG mapping#1014
Warbs816 wants to merge 3 commits intom3ue:devfrom
Warbs816:feat/epg-mapping-append-suffix

Conversation

@Warbs816
Copy link
Copy Markdown
Contributor

@Warbs816 Warbs816 commented Apr 11, 2026

Summary

  • Adds a regex extract mode toggle to EPG mapping advanced settings — when enabled, the first capture group from the regex pattern is used as the channel value instead of removing the match (e.g. (?<![A-Z])([A-Z]{4})(?![A-Z]) on CBS 123 (OHIU) Local extracts OHIU)
  • Adds an append suffix text field that appends text to cleaned channel values before EPG lookup (e.g. appending -DT to get OHIU-DT)
  • No migrations needed — settings stored in existing JSON settings column on epg_maps

Closes #423

Test plan

  • Create an EPG map with regex enabled + extract mode on, using a capture group pattern
  • Verify the extracted value is used for matching instead of removing the match
  • Add an append suffix and verify it's appended before EPG lookup
  • Verify default regex mode (extract off) still removes matched text as before
  • Verify append suffix works independently without regex

Adds two new EPG mapping settings: regex extract mode uses the first
capture group as the channel value instead of removing the match, and
append suffix adds text to cleaned values before EPG lookup.
@Warbs816 Warbs816 changed the base branch from master to dev April 11, 2026 22:07
@Warbs816 Warbs816 marked this pull request as ready for review April 11, 2026 22:25
@m3ue m3ue deleted a comment from kaykewf13 Apr 21, 2026
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.

EPG Mapping Regex syntax + append text (post regex)

1 participant