What Is EPG? How to Add an XMLTV TV Guide and Fix a Missing One
· 2 min read
The EPG is the TV guide that shows what's on now and next. When it's empty or an hour off, the cause is almost always one of five things. This guide explains how the guide works and how to fix it.
EPG stands for Electronic Programme Guide: the schedule of what's on each channel. In IPTV, the guide usually comes as an XMLTV file, an XML document listing channels and their programmes with start and end times.
How the guide gets to your player
- Xtream Codes: the guide comes with the login. Nothing to add.
- M3U: the guide is a separate XMLTV link. It may be in the playlist's first line as
url-tvg="…"orx-tvg-url="…", or your provider sends it separately, often ending inxmltv.php,.xmlor.xml.gz. - Stalker portals: the guide comes from the portal.
In LUMA TV, an XMLTV link inside the M3U is picked up automatically, and you can also add one in the dashboard when you add the playlist.
How channels are matched to the guide
The XMLTV file has entries like:
<channel id="news.example"><display-name>Example News</display-name></channel>
<programme channel="news.example" start="20261128180000 +0100" stop="20261128190000 +0100">
<title>Evening News</title>
</programme>
The player links a channel in your playlist to news.example using the playlist's tvg-id. If the IDs match, the guide appears. If they don't, that channel stays empty. Some players fall back to matching by name, which works only when the names are identical.
Why the guide is empty, and how to fix it
1. There's no guide link at all
Check the first line of the M3U for url-tvg. If it's not there, ask your provider for the EPG link and add it in your player.
2. The tvg-id values don't match
If some channels have a guide and others don't, the missing ones have a tvg-id that doesn't exist in the XMLTV file. Only the provider can fix this properly, so report the channel names to them.
3. The guide is too big or slow
Some guides are hundreds of megabytes with weeks of data for thousands of channels. Low-memory TV boxes can take a long time to load them or give up. A compressed .xml.gz link, or a shorter guide (often available by adding a parameter the provider documents), helps.
4. The guide hasn't refreshed
Guides usually cover a few days ahead. If the player stopped refreshing, the guide runs out. Trigger a refresh in the player, or remove and re-add the playlist.
5. The provider's guide is temporarily down
Open the EPG link in a browser on a computer. If it doesn't download, the problem is on the provider's side.
Why the guide shows the wrong time
- Wrong time zone on the TV. XMLTV times include an offset such as
+0100, and the player converts them to the device's time zone. Set the correct time zone and automatic time on the TV. - The provider's offsets are wrong. If every programme is exactly one hour off after a daylight-saving change, the guide itself is wrong. Some players let you shift the guide by a set number of hours; otherwise, report it.
Frequently asked questions
Are there free EPG sources?
Yes, there are community-maintained XMLTV guides for many countries. They only work if the tvg-id values in your playlist use the same IDs.
Can I record from the guide?
Recording depends on the player and the provider. Catch-up (watching past programmes) needs the provider to store them; the player only requests them.
