15% discount on service renewal Renew now

0

admin Admin

Fixing XMLTV EPG problems: tvg-id matching, time offsets and gaps

Article

When the TV guide says "No information", lists another channel's programs or runs an hour early, the cause is nearly always one of three things: the playlist and the guide don't agree on channel IDs, the times are shifted twice or not at all, or the guide file doesn't cover that channel or that day. This article works through XMLTV EPG problems in the order worth checking, with the fix in each common player and server.

The steps apply to any IPTV subscription and any XMLTV guide. Addresses below use placeholders such as http://example-server.com:8080, username and password; your real guide link may contain your login, so keep it private.

How XMLTV EPG data reaches your player

XMLTV is a plain XML format with two kinds of entries. A <channel> element has an id and one or more <display-name> lines. A <programme> element names its channel and carries a start time, an optional stop time, a title and usually a description and category. The format requires a start time, a channel and a title; when the stop time is missing, players usually take the next program's start as the end.

Your player gets the file from one of three places: the address your provider gives (Xtream Codes panels publish one at http://example-server.com:8080/xmltv.php?username=username&password=password), the x-tvg-url in the playlist header, or a guide you add yourself. It downloads the file, often compressed as .gz, pairs each guide channel with a playlist entry, and stores the result. Every fix below targets one of those stages.

Step 1: check that the channel IDs match

  1. Download your M3U playlist and find the channel. Note the exact value of its tvg-id.
  2. Download the guide. If it ends in .gz, decompress it, then search it for id=" followed by that value.
  3. Compare the two character for character: letter case, dots, country suffixes such as .uk, and feed suffixes such as @SD.

Three outcomes are possible. If the ID appears in both files, matching is fine and the problem lies in step 2 or 3. If the playlist has no tvg-id or the guide has no such channel, see step 4. If the spellings differ, fix the pairing in your app:

  • Kodi (IPTV Simple): the add-on tries tvg-id against the XMLTV id, then the XMLTV display name against tvg-name, then against the channel name. Turn on Ignore case for EPG channel IDs if only the case differs. A Kodi forum thread traced one empty guide to a playlist that spelled the attribute itself tvg-ID; Kodi expects lowercase.
  • Jellyfin: open the menu next to your guide provider and choose Map Channels, then assign a guide channel to each unmatched tuner channel with the pencil icon.
  • Plex: the DVR setup shows a channel mapping screen after you add an XMLTV guide; correct the pairs there.
  • Threadfin or xTeVe: a channel is matched automatically when its tvg-id equals an XMLTV channel ID. Otherwise pick the XMLTV File and XMLTV Channel for it in the mapping editor. Only active channels reach Plex or Jellyfin.
  • Tvheadend: the playlist's tvg-id is stored as each stream's EPG ID, which helps automatic linking. Unlinked guide channels can be assigned under Configuration > Channel / EPG > EPG Grabber Channels.
  • Enigma2: the EPG-Importer plugin uses a channels file that ties each XMLTV ID to a service reference. Bouquet tools write it for you; a wrong line there means a wrong guide.

Many player apps also let you choose a guide channel by hand in a channel's options. IPTVnator, for example, added manual EPG channel mapping in its 0.23 release in August 2026.

Step 2: check the dates and the refresh

A guide file covers a limited window, usually a few days. If the file on your device is old, or the source stopped updating, today's programs are simply missing. Look at the start values of the last programs for a channel: if they end yesterday, the problem is freshness, not matching.

  • Kodi: IPTV Simple can cache a remote guide locally. After you change guide settings, clear Kodi's stored guide with Clear data in Settings > PVR & Live TV so Kodi reloads it. Kodi also loads guide data only when it needs it, so the first open after a change can take a while.
  • Jellyfin: set Number of days of guide data to download in the Live TV settings and run a guide refresh. Since Jellyfin 12, repeat imports skip programs that haven't changed, so refreshes are cheaper.
  • Threadfin or xTeVe: the Schedule for updating setting decides when playlists and XMLTV files reload. A schedule that never runs leaves the guide frozen.
  • Tvheadend: internal grabbers run on a cron schedule. Check that the schedule exists and that the last run succeeded in the log.

Step 3: fix time offsets

XMLTV writes times as YYYYMMDDhhmmss followed by an offset, for example 20261021180000 +0000 for 18:00 UTC. The format says that a time without an offset is UTC. Your player converts these times to the time zone of the device, so the device clock and time zone come first: set both to automatic before you touch any offset setting.

Then read the symptom:

  • Every channel is off by the same number of hours. The device time zone is wrong, or the guide writes local times with a wrong offset. Correct the device first. If the guide itself is wrong, apply one global shift: in Kodi, EPG time shift accepts -12 to +14 hours.
  • Only some channels are off. Those channels take their data from a feed with a different time base, such as a guide written for another country's version of the channel. Shift just those channels with a tvg-shift attribute in the playlist, or map them to the guide channel that matches the feed you actually watch.
  • Everything moved by one hour after the clocks changed. The guide is probably written with a fixed offset that ignores daylight saving. A manual shift fixes it until the next change and then breaks again. The lasting fix is a guide with correct offsets, so report it to whoever produces the file.
  • The guide is right but catch-up starts at the wrong point. That is a separate setting. Kodi has a Catchup correction option and playlists can carry catchup-correction; the guide shift doesn't affect it.

Shift in one place only. In Kodi, the global shift and each channel's tvg-shift add together unless you turn on Apply time shift to all channels, which makes the global value win. A shift in the playlist, another in a proxy such as Threadfin, and a third in the player will stack.

Step 4: fill gaps in coverage

Some channels have no data in a given guide at all. You have three ways to deal with that:

  1. Add a second source. Threadfin can merge several XMLTV files, and several players accept more than one guide.
  2. Build a guide for public channels. The iptv-org/epg project downloads listings from hundreds of sites into one guide.xml. You list the channels you want in a channels.xml file, where each entry names the source site, the channel's ID on that site and its xmltv_id; that xmltv_id must equal the tvg-id in your playlist. A Docker image runs the grab daily by default and serves the file on port 3000, and the project's GUIDES.md lists guides that community members host. Keep the request rate low, as the project warns that heavy loads can get you blocked by the source sites.
  3. Use placeholders. xTeVe and Threadfin can generate dummy guide entries named after the channel for the coming days, so channels without data still appear in grid guides that expect every channel to have entries.

Holes inside a day, overlapping programs or a title that repeats all day are errors in the data itself. Report them to the guide source; player settings can't repair them.

Symptoms and fixes at a glance

Symptom Likely cause What to do
"No information" on one channel ID mismatch, or the guide lacks the channel Compare tvg-id with the guide; map by hand or add a source
"No information" on every channel Guide address wrong, expired login, or a file the player can't read Open the guide address in a browser; check the login; clear the cache
All channels off by whole hours Device time zone or a wrong offset in the guide Fix the device first, then one global shift
One hour off since the clocks changed Fixed offset in the guide Report it; use a temporary shift
Some channels off Data from a feed with another time base Per-channel tvg-shift or a better-matching guide channel
Guide stops after a day or two Short window or a stalled refresh Check the refresh schedule and the file dates
Guide loads slowly or the app freezes Very large XMLTV file Fewer days, or a proxy that exports only the channels you use
Plex won't read the guide Compressed file xTeVe's documentation notes that Plex doesn't accept the .gz version; use the plain .xml address

For the guide settings in a popular Android TV player, see our TiviMate guide. If you're still stuck, post the symptom, your player and a copy of one #EXTINF line with the login replaced by placeholders in the community.

Sources and further reading

0 replies

0 replies

Log in with the account you ordered with to reply and vote.Log in
Chat on WhatsApp