TiviMini Help
Help › Playlists

Writing M3U and TXT playlists

All devices 3 min
In shortStart with #EXTM3U, then two lines per channel: #EXTINF with the name and attributes, and the link on the next line. In TXT, each line is name,link and group,#genre# starts a group.

Basic format

m3u
#EXTM3U x-tvg-url="https://example.com/epg.xml.gz"
#EXTINF:-1 tvg-id="news1" tvg-logo="https://example.com/news1.png" group-title="News",News One
http://example.com/live/news1.m3u8
#EXTINF:-1 group-title="Sports",Sports Channel
rtp://239.3.1.241:8000

The channel name goes after the comma. Lines TiviMini doesn't understand are skipped; the rest still loads.

Common attributes

AttributeWhat it does
group-titleGroup. #EXTGRP lines work too
tvg-logoChannel logo image URL
tvg-id · tvg-nameMatch the guide; without them the channel name is used, see TV guide
x-tvg-url · url-tvgOn the first line: guide URL, more than one is fine
catchup · catchup-sourceCatch-up settings, see Catch-up

No logos? The playlist needs tvg-logo with an image URL that opens. Also check Settings›Appearance›Show logos (on Mac: Logos in the Settings window). With logos off, short channel names are shown instead.

Request headers

If a source needs a specific User-Agent or Referer, put it between the channel's #EXTINF and its link:

m3u
#EXTINF:-1,Sample Channel
#EXTVLCOPT:http-user-agent=Mozilla/5.0
#EXTVLCOPT:http-referrer=https://example.com/
http://example.com/live.m3u8

user-agent and referer attributes on the #EXTINF line work too, with or without http-.

If the whole playlist needs them, set them once on the playlist instead, see Settings for one playlist.

One channel, several streams

List the same channel name several times and each link becomes a stream you can switch between while watching (the second onwards needs Pro), see Switching streams.

Only identical links count as the same stream: two links that differ by one parameter are two streams.

TXT playlists

txt
Sports,#genre#
Sports Channel,http://example.com/a.m3u8#http://example.com/b.m3u8
News,#genre#
News One,http://example.com/news1.m3u8$HD
  • Every channel after group,#genre# is in that group
  • Several links joined with # on one line are streams of the same channel
  • A $label after the link is dropped and doesn't affect playback