Skip to content

[event-channel-managarr]: add Pattern 0b/0c for space-separated YYYY MM DD datetime format#116

Closed
gitdeathbot wants to merge 2 commits into
Dispatcharr:mainfrom
gitdeathbot:patch-1
Closed

[event-channel-managarr]: add Pattern 0b/0c for space-separated YYYY MM DD datetime format#116
gitdeathbot wants to merge 2 commits into
Dispatcharr:mainfrom
gitdeathbot:patch-1

Conversation

@gitdeathbot

Copy link
Copy Markdown

About this submission

Fix for ECM's _extract_date_from_channel_name function missing Peacock Events-style space-separated datetime formats.

What type of change is this?

  • Bug fix

Description

Peacock Events channels (and similar providers) embed event datetimes in their channel names using a space-separated format:

Peacock Events 048: Upcoming (France v. England | 2026 05 17 11:45:00 AM) | 2026 04 29 06:01 AM EDT
Channel Name (2026 06 09 20:00:00)

None of the existing 7 date patterns in _extract_date_from_channel_name matched this format. As a result, the [PastDate:0] hide rule was blind to these channels — they stayed visible in the guide indefinitely rather than being hidden when their event date passed.

Two new patterns added after Pattern 0a:

  • Pattern 0b — space-separated datetime in parentheses: (YYYY MM DD HH:MM:SS[ AM/PM])
  • Pattern 0c — space-separated datetime inline (no parentheses): YYYY MM DD HH:MM:SS[ AM/PM]
    • Uses re.search so the first match wins (event date earlier in name preferred over trailing timestamp)

Both patterns support optional AM/PM via the existing _apply_meridiem helper.

Testing

Verified against 6 real Peacock Events channel names — all 6 correctly extracted dates (3 past → hide, 3 future → keep).

…format

Peacock Events channels use a space-separated datetime format in their names
(e.g. "2026 05 17 11:45:00 AM" or "(2026 06 09 20:00:00)") that none of
the existing date patterns in _extract_date_from_channel_name matched.

This caused the [PastDate:0] hide rule to be blind to these channels,
leaving stale past-dated event channels visible in the guide indefinitely
(until the slower [UndatedAge:2] rule eventually caught them after 2 days).

Add two new patterns:
- Pattern 0b: space-separated datetime in parentheses
  e.g. Channel Name (2026 06 09 20:00:00) or (2026 06 09 08:00:00 AM)
- Pattern 0c: space-separated datetime inline (no parentheses)
  e.g. Peacock Events 048: Event Name | 2026 04 29 06:01 AM EDT
  Uses first match so the event date is preferred over any trailing timestamp.
@dispatcharr-plugins-bot

Copy link
Copy Markdown

Plugin Validation Results

Modified plugins: 1

PR Closed: Unauthorized

Your GitHub username (gitdeathbot) does not appear in author or maintainers for any of the plugin(s) in this PR. This PR has been automatically closed.
If you would like to contribute to this plugin, please consider reaching out to the maintainers of this plugin on Discord, or the plugin's Github repository.

If you are submitting a new plugin, add your GitHub username to the author field in your plugin.json.

@dispatcharr-plugins-bot dispatcharr-plugins-bot Bot added Plugin Update A plugin already in the repository is being updated. Invalid The PR is invalid or created in error. labels Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Invalid The PR is invalid or created in error. Plugin Update A plugin already in the repository is being updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant