Understanding the #EXTINF Metadata Tag

The `#EXTINF` line is the most important directive in an IPTV playlist. It holds all the metadata that players use to catalog channels.

Deconstructing the EXTINF Tag

In `#EXTINF:-1 tvg-id="CNN" group-title="News",CNN`, the `-1` sets the duration, EPG parameters map to tvg-id, and category maps to group-title.

Importance of the Comma Separator

The comma (,) after the EPG attributes is mandatory. It acts as the separator telling the parser that the channel title starts immediately after it.

Custom EPG Parameters

Other attributes like tvg-logo define the channel icon URL, tvg-country defines the regional code (like US or UK), and tvg-chno defines the channel number.

Avoid Quotes in Title Names

Do not write channel names inside quotes (e.g. ,"CNN"). The comma designates the title boundary, and quotes will display literally in the player list.

Read the delimiter from left to right

After #EXTINF:, M3U Studio reads duration up to whitespace or the first comma. It extracts double-quoted attributes such as group-title="News". The display name is everything after the last comma, so an extra comma in a name changes what the parser displays.

For live entries, -1 is common. A player may interpret other durations differently. Attribute names and behavior are conventions, so preserve values your target player or EPG already uses.

Frequently Asked Questions

Can I customize the attributes in EXTINF?

Yes, you can append custom attributes as key-value pairs (e.g., tvg-country="US").

What if there is no comma?

The parser might fail to find the channel name, showing it as 'Unknown Channel'.

Interactive Tool Workspace