Plugins

Back to All Plugins

Automap Channelarr

Version: 0.4.2 Author: Megamannen Last Updated: Nov 01 2026, 16:20 UTC

Deterministic rule-based channel mapper: pools each M3U group’s streams by normalized name and lays them out as channels from a configured start number. Event groups become schedule-ordered, self-cleaning channel blocks. Replaces the built-in automapper.

License: Artistic-2.0 Repository

Dispatcharr min

Downloads

Latest Release

Checksums:

MD5:    160e538613e7f0e25a4a4e885a618d4a
SHA256: f6b797f9f780e3225bb190f11d4f55202871d10449260c2548bdf2361091d793

All Versions

Version Download Built Commit MD5 SHA256
0.4.2 Download Nov 01 2026, 16:21 UTC 6ff3546 160e538613e7f0e25a4a4e885a618d4a f6b797f9f780e3225bb190f11d4f55202871d10449260c2548bdf2361091d793
0.2.0 Download Oct 28 2026, 00:30 UTC 11962f9 c599844a14e7afee1478ae38a4cdca08 2142383cf74331857055494896fb185310a86301000cb0c50b094adc8e13734e

Source: Browse Plugin

Metadata: View full manifest


Plugin README

Automap Channelarr

A Dispatcharr plugin that maps M3U groups to channel-number blocks with deterministic, rule-based logic. It replaces the built-in automapper (auto channel sync) for the groups you configure.

No curated channel databases, no fuzzy matching, no network access: streams are pooled by a normalized name or a shared tvg-id, and each pool becomes exactly one channel at a predictable number.

Groups of one-off events (20:30 Bundesliga: Bayern - Dortmund 27/10) get their own rules: each event becomes a channel ordered by start time and is removed once it is over. See Event rules.

What it does

For each configured group, on every run:

  1. Pools all non-stale streams in the group - from every M3U account, unless the rule is account-qualified. Two providers’ ZDF streams become one channel with both streams attached, ordered for failover.
  2. Normalizes each stream name into a grouping key: country prefix removed (DE:, DEU |), trailing uppercase country code removed (RTL DE, Sat.1 | DEU), quality and codec markers removed (4K, UHD, FHD, HD, SD, 2160p, 1080p/i, 720p, 576p/i, 480p/i, HEVC, H265, 50FPS, plus your own tokens), numbered or lettered tags removed ((1), (B)), empty brackets removed, lower-cased, punctuation and whitespace stripped. DE: Pro 7 FHD, Pro7 DE (2) and pro7 hd all become pro7. See Country codes for what counts as a code. Names whose streams share a tvg-id are merged into one key, so ZDF DE and ZDF Deutschland with the same tvg-id become one channel. A blank tvg-id, null or undefined is ignored.
  3. Creates one channel per key, numbered upward from the rule’s start number in provider playlist order. The display name is the cleaned original (Pro 7), picked as the most frequent variant among the pooled streams.
  4. Keeps runs stable: existing channels keep their number and identity forever. New names get the lowest free number in the block. Numbers held by channels the plugin does not own are skipped and reported, never stolen.
  5. Syncs streams and EPG on every run: the channel’s stream list is made to exactly match the pool, ordered 4K/UHD/2160p > FHD/1080p > HD/720p > unmarked > SD/576p/480p; tvg-id and EPG linkage follow the best stream. The display name, logo, and group are set at creation and never overwritten, so manual edits stick.
  6. Deletes orphans carefully: a channel whose streams disappear from the provider is deleted only after staying gone for the configured grace period (default 7 days). If the key reappears first, the timer resets.

Rules

One rule per line in the Rules setting:

# comments and blank lines are ignored
Sport; Sport HD = 100
Nachrichten = 200
ProviderX/Kinder = 300
Filme = 400 -> Meine Filme

A target may be the rule’s own source group, and several rules may share a target. A target that is a source group of another rule is an error.

Event rules

The Event rules setting uses the same syntax as Rules, including ; pooling, Account/Group and -> Name. A group or start number may be used in Rules or Event rules, not both.

PPV Events DE = 5000
NXT IPTV/Live Sport DE = 6000 -> Events

Start time and date

The start time and date are read from each stream name:

Event regex overrides the built-in detection. It must contain a named group (?P<time>...); (?P<date>...) is optional (no date = today). Streams it does not match fall back to the built-in parser.

^(?P<time>\d{1,2}:\d{2}).*?(?P<date>\d{1,2}/\d{1,2})

Titles and names

The title is the stream name with the matched time and date removed, then cleaned:

Two ;-separated lists override this per stream. Each entry matches when the stream name contains it, ignoring case:

Event as is:  Konferenz; Sportschau
Event not:    Wiederholung; Highlights

Streams with the same normalized title and the same date are pooled into one event channel, the same way regular channels pool by name. The same title on another date is a separate event.

The channel name comes from Event name template (default {date} {time} {title}, giving 27/10 20:30 Bundesliga: Bayern - Dortmund):

Token Example
{title} Bundesliga: Bayern - Dortmund
{time} 20:30
{time12} 8:30 PM
{date} 27/10
{usdate} 10/27
{isodate} 2026-10-27
{weekday} Tue
{weekday:Mo,Di,Mi,Do,Fr,Sa,So} Di - your own 7 names, Monday first

Times are shown in server time. Unknown tokens are left as written and reported as a warning. Unlike regular channels, event channel names are updated on every run to match the template.

Lifecycle

Sample configuration

A working setup: one country block, one neighbouring-country block, and one event block pooling four provider groups. Auto-run is on; everything not listed keeps its default.

Rules

Germany = 1 -> Deutschland
Austria = 400 -> Österreich

Strip tokens - provider tags that would otherwise split one channel into several:

(B);(Multi);(Game Time Only);NXTDE

Preferred max quality: FHD - 4K/UHD streams are left out whenever a channel has anything else.

Event rules - four event groups pooled into one block from 1000, placed in a channel group named Event. The first group’s name contains |, which is fine; ; is the separator:

Sky Sport | Bundesliga | DAZN;MagentaSport NXT DE;Joyn NXT DE;Disney+ Deutschland NXT DE = 1000 -> Event

Event strip tokens - the Strip tokens plus the provider names, so DAZN: Bundesliga: Bayern - Dortmund and Sky Bundesliga: Bayern - Dortmund pool into one event:

(B);(Multi);(Game Time Only);NXTDE;Disney;DAZN;Sky

Event as is - streams that are containers rather than single events keep their raw name:

(Live Events Only)

Event not - provider junk lines that are not events:

↓;Update your playlist;Welcome to NXT

Event name template - local weekday names:

{weekday:Mo,Di,Mi,Do,Fr,Sa,So} {time} {title}

giving event channels like Di 20:30 Bundesliga: Bayern - Dortmund.

Country codes

Only ISO 3166-1 codes count as country codes: the 2- and 3-letter codes (DE, DEU, AT, AUT), plus UK, which is not ISO but common in playlists. TV (Tuvalu) is left out, because it is a common real suffix.

Config errors

Any of these aborts the whole run with an error, so nothing is half-applied:

A group that exists but currently matches no streams is skipped with a warning.

Settings

Setting Default Meaning
Run automatically after each M3U refresh off Runs the mapper after every successful M3U refresh
Rules empty The mapping rules described above
Strip tokens empty Additional ;-separated tokens removed before grouping
Preferred max quality Unlimited Streams marked above this are left out of channels, unless they are all a channel has. Unmarked streams are never dropped. Applies to events too
Orphan grace period (days) 7 Days a mapped channel must stay gone from the provider before deletion; 0 deletes immediately. Events are deleted at once, regardless
Event rules empty Rules for event groups, same syntax
Event strip tokens empty ;-separated tokens removed from event titles; empty uses Strip tokens
Event as is empty ;-separated texts; matching event streams keep their stream name as channel name
Event not empty ;-separated texts; matching event streams are skipped
Event regex empty Overrides the built-in time/date detection for event streams
Event name template {date} {time} {title} Name of each event channel
Event lead time (hours before start) 36 Events further ahead are not created yet; 0 creates all
Event removal (hours after start) 6 Event channels are deleted this long after their start time

Actions

Only one run executes at a time. A run triggered while another is in progress (several M3U accounts refreshing back to back) is queued: the running instance goes again as soon as it finishes, so no refresh is left unmapped.

Each real run posts a one-line summary notification in the UI; details go to the Dispatcharr log.

Replacing the built-in automapper

Disable auto channel sync on every group you configure here (M3U account group settings). The plugin still runs if you forget, but warns on every run: the built-in sync rebuilds its own one-channel-per-stream layout before each refresh completes, and the two will fight indefinitely.

Requirements

Installation

  1. Download the plugin zip.
  2. In Dispatcharr, go to Plugins -> Import Plugin and upload it.
  3. Enable the plugin, add rules, and start with a Dry Run.

State

The plugin keeps a small state.json to track channel identity, orphan grace timers and the date of the last event renumbering. It lives in the plugin’s durable data directory (/data/plugins/_data/automap-channelarr/), which survives plugin upgrades; a state.json left in the plugin code directory by older versions is moved there on the first run. Removing a rule from the config stops the plugin managing those channels but never deletes them.

License

Artistic-2.0