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.

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