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.
automap-channelarr-latest.zip6ff3546Checksums:
MD5: 160e538613e7f0e25a4a4e885a618d4a
SHA256: f6b797f9f780e3225bb190f11d4f55202871d10449260c2548bdf2361091d793
| 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
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.
For each configured group, on every run:
ZDF streams become
one channel with both streams attached, ordered for failover.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.Pro 7), picked as the most frequent variant among the pooled streams.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.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
Group = start - map one M3U group to a block starting at that number.Group A; Group B = start - pool several groups into one block.Account/Group = start - only streams from that M3U account. A leading
Something/ is treated as an account name only when an account with that
exact name exists, so group names like 24/7 Movies work unqualified.... = start -> Name - put the channels in the channel group Name,
created if it does not exist. Without it, channels go in the rule’s first
source group. The group is set when a channel is created, so changing the
target later does not move existing channels.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.
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
The start time and date are read from each stream name:
HH:MM in 24h (20:00) or 12h with AM/PM (10:00 PM,
10:00 p.m.). A timezone abbreviation right after the time is converted to
server time: UTC, GMT, EST, EDT, CST, CDT, MST, MDT, PST, PDT, WET, WEST,
BST, CET, CEST, EET, EEST, AEST, AEDT. Abbreviations are taken literally
(EST is always UTC-5). Times without one are server-local.2026-10-27, or 27/10 / 10/27 / 27.10, optionally with a
2- or 4-digit year (27/10/26). Whether D/M or M/D is meant is decided
once for all event streams in a run: a value over 12 settles it; otherwise
the position that matches the current month is the month; failing that,
day first.31/12 read
on January 2nd is four days ago, not next December.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})
The title is the stream name with the matched time and date removed, then cleaned:
;-separated, like Strip tokens).
When the setting is empty, Strip tokens are used instead. Quality and
codec markers (4K, UHD, FHD, HD, SD, 2160p, 1080p/i, 720p, 576p/i,
480p/i, HEVC, H265, 50FPS) are always removed. (1) / (B) tags are kept:
in event groups they usually tell separate feeds apart.... Bayern - Dortmund DEU).Bundesliga: looks the same as a
country prefix, so Bundesliga: Bayern - Dortmund stays intact.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.
0 creates everything the provider lists.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.
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.
: or |, in any case (DE:, deu |).
Anything else stays part of the name (DFB: Pokal).RTL DE,
ProSieben DEU). Nick JR, Disney XD and Bibel TV keep their endings.
Some real codes double as abbreviations: ID (Indonesia) and IT (Italy)
are stripped, so Investigation Discovery ID becomes
Investigation Discovery. The grouping is unaffected, only the display
name.Any of these aborts the whole run with an error, so nothing is half-applied:
-> target, or a target that is another rule’s source group(?P<time>...)A group that exists but currently matches no streams is skipped with a warning.
| 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 |
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.
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.
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.
Artistic-2.0