Skip to content

[Feature]: Support for #EXTGRP tag in M3U parser #1088

@gevo4258

Description

@gevo4258

Is your feature request related to a problem?

Dispatcharr is currently unable to recognize channel groups in M3U files that use the #EXTGRP tag. While some providers include group information as a group-title attribute within the #EXTINF line, others (like mine) provide it on a separate line immediately following the #EXTINF data.

Currently, these channels appear in Dispatcharr without any category/group assignment, making library management difficult.

Describe the solution you'd like

I would like the M3U parser to support the #EXTGRP directive. If an #EXTGRP line follows an #EXTINF line, the software should assign that channel to the specified group.

Example Format:

#EXTINF:0 tvg-id="ch1577" tvg-name="AM: MyTV" tvg-logo="..." timeshift="0", AM: MyTV
#EXTGRP:1. Armenia
http://example.com/ch1577/index.m3u8

Additional context

Many IPTV providers use this formatting for better readability or legacy compatibility. Below is a sanitized example of my file's structure. Currently, Dispatcharr ignores the group line, causing all channels to be uncategorized:

#EXTINF:0 tvg-id="ch1577" tvg-name="AM: MyTV" tvg-logo="http://XXXXXXXXXXX/images/chIcons/1577.png", AM: MyTV
#EXTGRP:1. Armenia
http://XXXXXXXXX/ch1577/

#EXTINF:0 tvg-id="ch004" tvg-name="Рен ТВ HD" tvg-logo="http://XXXXXXXXX/images/chIcons/4.png", Рен ТВ HD
#EXTGRP:2. Federal/Федеральные
http://XXXXXXXX/ch004/

Adding support for this would make the software much more robust for users with diverse provider formats.

Metadata

Metadata

Assignees

Labels

Area: M3UM3U PlaylistsAvailable In DevThis is fixed/available in the dev branch and will be included in the next release.P2Priority 2 issue. Priorities are 1-4, 1 being the highest priority.
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions