Understanding IPTV4 min read

TV guide (EPG): what it is, where it comes from and why it's sometimes empty

The grid that shows what's on now and next. How it's built, how the player links each channel to the right schedule and what to do when it doesn't show up or shows the wrong time.

By the Nineplay TeamPublished
Article cover: TV guide (EPG): what it is, where it comes from and why it's sometimes empty

In 30 seconds

  • The EPG is the electronic program guide: the grid of what's on now and next on each channel.
  • It comes from a file separate from the playlist, usually in XMLTV format.
  • The player links each channel to the schedule by tvg-id. If the code doesn't match, the guide stays empty for that channel.
  • Wrong times are almost always a time zone issue; an empty guide is almost always tvg-id or an unavailable guide file.

What the EPG is

EPG stands for Electronic Program Guide. It's the grid you already know from cable TV: channels in rows, times in columns and the current show highlighted. In IPTV it plays the same role, but the player builds it from a file downloaded from the internet.

A program grid

In green, what's on now (9:05 p.m.)

Figure 1. Illustration of an EPG grid. Made-up channels and shows.

Where the schedule comes from

The playlist says which channels exist; the guide says what's on each one. They're two different files. In an M3U playlist, the guide address usually comes on the first line, in the x-tvg-url attribute. With Xtream Codes, the server itself usually provides the schedule.

How the player builds the guide

PlaylistChannels with tvg-id, name and logo
Guide fileSchedule in XMLTV, downloaded separately
MatchingThe player pairs channel and schedule by tvg-id
Grid on screenNow, next and the synopsis
Figure 2. Playlist and guide are separate files, linked by each channel's code.

Inside an XMLTV file

The most common guide format is XMLTV. It has two parts: the list of channels, each with an id, and the list of programs, each with its channel, start and end.

Figure 3. Excerpt from a guide in XMLTV format. Made-up names.
  • 1The channel id in the guide. It has to match the channel's tvg-id in the playlist.
  • 2Program start: year, month, day, hour, minute and second, followed by the time zone (here, -0300, Brasília time; New York is -0500 in winter).
  • 3Which channel the program belongs to, by the same id.

When the guide doesn't work: quick diagnosis

Guide trouble? Start here

What you seeMost common causeWhat to do
Empty guide on every channelThe playlist has no guide address, or the file is downRefresh the playlist; if it doesn't come back, ask your provider whether the playlist has an EPG
Empty guide on some channels onlyThose channels' tvg-id doesn't exist in the guide fileThe provider needs to fix the channel code
Schedule ahead or behindThe guide's time zone differs from yoursCheck the device's time zone; if it's right, it's the guide file
Schedule from days agoThe guide file isn't being updatedRefresh the playlist in the app; if it persists, it's up to the provider
Wrong show on the channelTwo channels with the same tvg-idThe provider needs to fix the codes
Figure 4. The five most common guide problems and where the fix is.

How the guide shows up in Nineplay

On the Live TV screen, each channel shows the current and next show when the playlist includes a guide. Nineplay downloads the schedule in the background and updates it on its own, so you don't need to do anything beyond sending the playlist.

Nineplay's Live TV screen with channel categories
Figure 5. Live TV in Nineplay, with demo channels.
If the guide suddenly disappearedRefresh the playlist in the app (in Settings). If it's still empty on every channel, your provider's guide file may be down; it's worth asking them.

Time zones: the three-hour mistake

The most confusing guide problem is a shifted schedule: the app says the news is on, but the screen shows a drama. It's almost always the time zone. Each program's time in XMLTV ends with the time zone; if the file was generated in UTC and the zone wasn't set right, everything shows up hours off (three hours, in Brasília time; four or five on the US East Coast).

20:00 -0300what the guide should say (Brasília time)
20:00 +0000the same number, but in UTC: actually 17:00 in Brasília
3 hoursoff in the grid
Figure 6. The same time written with different time zones turns into a three-hour error.

If the guide is always ahead or behind by the same number of hours, first check the device's time zone and date. If they're right, it's the guide file that needs fixing, and that's up to your playlist provider.

Quick quiz

3 questions to check what stuck. Tap an answer.

Where does the TV guide come from?

Why might a channel show up with no guide?

A guide that runs ahead or behind is usually…

Frequently asked questions

What is EPG in IPTV?

It's the electronic program guide: the grid of what's on now and next on each channel. It comes from a file separate from the playlist, usually in XMLTV.

Why doesn't the TV guide show up?

Either the playlist has no guide address, the file is down, or the channels' tvg-id doesn't match the guide. Refresh the playlist in the app and, if that doesn't fix it, contact your playlist provider.

Why does the guide show the wrong time?

It's almost always the time zone. Check the device's time zone; if it's right, the guide file has the wrong zone.

Try Nineplay for 7 days.

Create your account now and use it on iPhone, iPad, Mac, Apple TV, Android, Windows and Xbox. The other platforms join the same subscription.

Nineplay is a player app. We don't sell, provide or recommend channels, movies, series or playlists, and we don't support using content without authorization. Only use playlists from providers who have the right to stream them.