github PiratesIRC/Dispatcharr-Event-Channel-Managarr-Plugin v1.26.1362004
v1.26.1362004 — Fix AM/PM date auto-detection (issue #19)

4 hours ago

Bug fix

Fixes #19 — channels whose names contain a parenthesized ISO datetime with a 12-hour clock and an AM/PM suffix were not being date-detected, so [FutureDate] / [PastDate] hide rules silently skipped them and upcoming games kept showing.

Example channel names that now work:

(MLB 42) | Arizona Diamondbacks @ Chicago Cubs (2026-05-01 02:20:00 PM)
(MLB 49) | Philadelphia Phillies @ Miami Marlins (2026-05-01 07:10:10 PM)

What changed

_extract_date_from_channel_name Pattern 0 (start: / stop: prefix) and Pattern 0a (parenthesized) regexes previously required the closing ) (or end) immediately after HH:MM:SS. A trailing AM/ PM token broke the match.

  • Added an optional AM/PM group and allow 1–2 digit hours.
  • Added an _apply_meridiem() helper for 12h→24h conversion: 12 AM → 00:00, 12 PM → 12:00, other PM hours +12.
  • Legacy 24-hour names without a meridiem (e.g. (2026-05-01 14:20:00)) are unchanged.

No new settings or dependencies. Auto-detect handles the YYYY-MM-DD HH:MM:SS AM/PM format — no configuration needed.

Verification

Smoke-tested against both reporter examples plus 12 AM (midnight), 12 PM (noon), and no-meridiem (legacy 24h) edge cases. Reviewed by the code-review QA agent: no blockers or majors.

Files changed: plugin.py (Pattern 0/0a + _apply_meridiem), plugin.json (version), .gitignore.

Don't miss a new Dispatcharr-Event-Channel-Managarr-Plugin release

NewReleases is sending notifications on new releases.