PlayerStream
EN
Ko-fi

Guides / Live TV

EPG guide

XMLTV guides.

Your channels' schedule: what's on now, what's next and the 48-hour grid guide. An XML file the app matches with your list.

Whoever adds something is responsible for it. A program guide has an author too: use your own or one you have permission to use. PlayerStream does not include or recommend any.

01

A minimal guide.

guia.xml
<?xml version="1.0" encoding="UTF-8"?>
<tv>
  <channel id="one.northwind.example">
    <display-name>Northwind One</display-name>
    <icon src="https://tu-sitio.example/tv/logos/1.png"/>
  </channel>
  <programme start="20261023200000 +0200" stop="20261023210000 +0200" channel="one.northwind.example">
    <title>Open Movie Hour</title>
    <desc>Short films released under free licences.</desc>
    <category>Movie</category>
  </programme>
  <programme start="20261023210000 +0200" stop="20261023213000 +0200" channel="one.northwind.example">
    <title>Home Ground</title>
    <sub-title>Episode 12</sub-title>
  </programme>
</tv>

Put the <channel> elements before the <programme> elements, in UTF-8. Compressed (.xml.gz) it's much smaller: the app decompresses it on its own.

AndroidAndroid TVWindowsWeb version
02

What the app reads.

ElementUsed for
<channel id>The id used for matching. Required.
<display-name>Up to 8 names per channel, for matching by name.
The channel's <icon src>The first one.
<programme start stop channel>The times and the channel.
<title>, <sub-title>The first of each (up to 300 characters).
<desc>The description (up to 600).
<category>The category (up to 100). With “Sports”, “Deportes” or similar, the program goes into the Sports schedule (Lite+).
  • Times: YYYYMMDDhhmmss ±hhmm (seconds and time zone optional). With no time zone, or with Z, it's UTC.
  • Without stop, the program ends when the next one on the same channel starts (the last one, after an hour).
  • Not read: each program's <icon>, episode-num, rating, star-rating, credits, date, country, previously-shown, new or the language (lang): of each element, the first one.
03

How they're matched.

The list and the guide are matched by the channel's tvg-id and the guide's channel id Your list tvg-id="one.northwind.example" Northwind One Your XMLTV guide <channel id="one.northwind.example"> Open Movie Hour, 20:00 Northwind One Now: Open Movie Hour Next: Home Ground
Same id in the list and in the guide: the channel knows what's on.
  1. The list's tvg-id against the guide's <channel id>: identical, or identical ignoring case. This is the safest way.
  2. Otherwise, by name: tvg-name or the channel's name against each display-name, “normalized”: ignoring case and accents, without the country prefix (ES:, [ES]), without anything in brackets or parentheses and without quality tags (HD, FHD, 4K, 1080p…). So “ES: Northwind One HD” matches “Northwind One”.

With several guides, each channel looks first at its own source's guide (its url-tvg, its Xtream's or its addon's), then at the others. In each list's box, “Guide: automatic” lets you pick a specific one.

04

What is stored and when.

  • What's on now and the next 48 hours, on the device itself.
  • Past programs (Lite+), only for channels with an archive and only for their days (see catch-up). Guides don't usually include the past: the app keeps what it already downloaded.
  • It's downloaded once a day (and with “Update”), with the app in the foreground and no channel playing. Timeouts: 15 s to connect, 60 without receiving anything and, in total, 30 minutes at most.
The grid guide with the six test channels and their made-up programs, with the current-time line
The test guide in the app's grid (made-up programs).
05

Adding it in the app.

  1. If your list names it in url-tvg, the app asks when the list is added: “Add the guide”.
  2. Otherwise: Settings → Content → Live TV → “EPG guide” → “Name (optional)” and “Guide address” (http or https; you can't choose a file) → “Add”.
  3. Its box says how many programs it has for how many channels (“432 programmes (48 h) for 8 channels”).
Settings, Live TV with the addon with channels, the Northwind TV list and its EPG guide with 432 programs for 8 channels
The test guide, already read: “432 programmes (48 h) for 8 channels”.
06

Common errors.

  • “0 programmes” or channels without a guide: the ids don't match, or the <channel> elements come after the programs, or the times are all in the past.
  • One hour off: the time zone (+0200) is missing and the app treats it as UTC.
  • Cut-off descriptions: they're over 600 characters.
  • It doesn't load in the web version: the guide must be on https with CORS.