EPG checker: validate an XMLTV guide

Open an XMLTV guide (.xml or .xml.gz) or paste its link to see how many channels and programmes it has, which dates it covers, how full each channel is, and every error a player would trip over. Free, works on 100 MB+ files.

Runs entirely in your browser. A file is never uploaded; a link is requested by your own browser, never through IPFlix.

Your browser asks that address directly. Many guide servers block this (CORS, or http:// on this https page); if so, use the file instead.

Open a guide file or paste a link to start.

What the checker looks at

An XMLTV guide is one long XML file: a <tv> element holding a list of <channel> elements, each with an id and one or more display names, followed by thousands of <programme> elements. Each programme names its channel and has a start and usually a stop time such as 20261117180000 +0000. The checker reads the file from start to end, piece by piece, and counts what it finds for every channel, so a guide of several hundred megabytes is checked without filling the browser's memory.

At the top you get the totals: channels, programmes, the first and last moment the guide covers, and the time zone offsets it is written in. Below them is a list of problems, from errors a player cannot work around to warnings that are worth knowing, and a table with one row per channel: how many programmes it has, when its schedule starts and ends, and how many overlaps and gaps it has.

The problems it reports

ProblemLevelWhat it means
No <tv> elementErrorAn XMLTV guide starts with <tv>. This may be an HTML error page or another format.
File ends part-wayErrorThe last element is not closed, or </tv> is missing. The download was probably cut off.
Channel without an idErrorEvery <channel> needs id="…"; players match it to the playlist tvg-id.
Channel declared twiceWarningThe same channel id appears in more than one <channel> element.
Channel without a display nameWarningA <channel> has no <display-name>, so name-based matching cannot find it.
Programme without a channelErrorA <programme> has no channel="…" attribute and cannot be shown anywhere.
Missing or unreadable start timeErrorstart must look like 20261117180000 +0000. Players skip these programmes.
Missing or unreadable stop timeWarningstop is optional in XMLTV, but most players need it to draw the guide.
Stop before startErrorThe programme ends before it begins, usually a time zone or date mistake.
Programmes for an undeclared channelWarningProgrammes point at a channel id with no <channel> element. Many players still use them by id.
Channel with no programmesWarningDeclared, but nothing is scheduled for it. It will show an empty row.
Overlapping programmesWarningA programme starts before the previous one on the same channel ends.
Gaps of 30 minutes or moreWarningTime with nothing scheduled between two programmes on the same channel.

Reading the date range

Most providers publish a guide that runs from a few hours ago to three to seven days ahead, and rebuild it every day. If the last programme ends before now, the file you have is old: players show an empty guide even though the channels match. If it covers only a few hours, the provider may be cutting the guide short, or the download stopped early, which the checker reports as a file that ends part-way. Dates are shown in your own time zone; the offsets line shows how the file writes them.

Checking a guide link

Pasting a link makes your browser request the guide directly, as if you opened it in a new tab, and read the answer here. Nothing passes through IPFlix. The catch is that browsers protect sites from each other: a page may only read a file from another site when that site sends a CORS header allowing it, and an https page may not load plain http addresses at all. Many IPTV guide servers do neither, so the request is blocked. When that happens the page says so and links the address for you to download; open the saved file and the result is identical. Guide links from Xtream Codes logins (xmltv.php?username=…&password=…) contain your login, so the page never shows them in full; the Xtream to M3U converter builds that link from a login.

A valid guide that still shows nothing

A guide can pass every check here and still be empty on the TV, because the player joins it to the playlist by id. Each playlist entry's tvg-id has to equal a channel id in the guide. Open both files in the M3U checker to see the match rate, let the EPG mapper suggest ids for the channels that miss, and use the EPG viewer to read one channel's schedule. If the times are off by an hour or more, the EPG time shift fixes the offset. The guide how to fix an empty TV guide goes through the causes in order.

Questions

Is my guide or link sent to IPFlix?
No. A file you open is read by JavaScript in your browser. A link you paste is requested by your own browser, straight from that address, the same as opening it in a tab. Nothing goes through IPFlix, and the link is never stored or sent to analytics.
Why does my guide link say it is blocked?
Browsers only let a page read another site's file when that site allows it (CORS), and they block plain http:// addresses on an https:// page. Most IPTV guide servers allow neither. Open the link in a new tab to download the file, then open the file here: the result is the same.
Can it open .xml.gz guides?
Yes, from a file or a link. Gzipped guides are unpacked as they are read, with the browser's own DecompressionStream, in a current Chrome, Edge, Firefox or Safari.
What counts as a gap or an overlap?
An overlap is a programme that starts before the previous one on the same channel has ended. A gap is 30 minutes or more with nothing scheduled between two programmes on one channel. Some channels really do go off air at night, so gaps are a warning, not an error.
My guide passes, but my player still shows no guide. Why?
The guide can be valid and still not match your playlist. Players join them by the playlist's tvg-id and the guide's channel id. Check the match rate in the M3U checker, or suggest the missing ids with the EPG mapper.
How big a guide can it check?
Files of 100 MB and more, and guides with hundreds of thousands of programmes. Only two numbers per programme are kept while it reads, so memory stays low, and a progress bar shows how far it is.

Watch it on your TV

IPFlix Pro Player for Android TV, Google TV and Fire TV offers your playlist's EPG during setup and shows it in a TV Guide grid and a now/next info bar.

  1. Install IPFlix on the TV and open Add Playlist.
  2. Scan the QR code on the TV with your phone.
  3. On the phone, paste your provider's M3U link or type the Xtream login.

Free. No ads. Live TV and the TV guide are free. Pro unlocks movies, series, more playlists and profiles. IPFlix does not provide channels or content.