A deep dive into LibreELEC and Kodi's EPG (Electronic Program Guide) woes! Don't worry, I'm here to guide you through the troubleshooting and fixing process. Buckle up!
Initial Observations
- You've confirmed that:
- The
xml.gz file is small (~2 MB), which shouldn't be an issue.
- Icons (channel logos) are being displayed correctly.
- EPG data is not being shown in Kodi on LibreELEC, but is visible on other devices.
- Your setup:
- Latest LibreELEC (good!)
- Kodi 21 ( Omega branch, latest stable)
pvr.iptvsimple addon is in use (we'll get to this)
Log Analysis
You've provided a filtered log snippet (cat /storage/.kodi/temp/kodi.log | grep -i epg). Here's what we can deduce:
- The
<epg> section in the log indicates that EPG is enabled in your Kodi settings:
The Real Investigation Begins
Since EPG data is not being displayed, we'll explore potential causes:
1. PVR IPTV Simple Addon Configuration
Ensure pvr.iptvsimple is properly set up:
a. Run cd ~/.kodi/userdata/addon_data/pvr.iptvsimple (you've already done this)
b. Verify settings.xml exists: ls settings.xml
c. Check the settings: cat settings.xml
Look for these crucial elements:
* <epgPath> or <epgUrl> should point to your xml.gz file (e.g., http://your-iptv-server/epg.xml.gz)
* <epgTimeShift> should match your timezone offset (or 0 if using UTC)
* <useEPGCache> should be true (enabled)
Example snippet:
<settings version="2">
...
<setting id="epgUrl">http://your-iptv-server/epg.xml.gz</setting>
<setting id="epgCache">true</setting>
<setting id="epgTimeShift">0</setting>
...
</settings>
If any of these are missing or misconfigured, edit settings.xml (use nano or vi editor) to fix them. Restart Kodi afterwards: systemctl restart kodi
2. EPG Grabber Modules
Kodi relies on EPG grabber modules (Python scripts) to parse the xml.gz file. You might be missing the necessary grabber:
a. Ensure xmltv grabber is installed (it should be by default, but let's verify):
ls ~/.kodi/addons/script.module.xmltv/
You should see files like __init__.py, xmltv.py, etc.
b. If the xmltv module is missing (very unlikely, but possible):
* Download the Omega branch (21.X) version of script.module.xmltv from Kodi's addon repo.
* Install it manually: unzip script.module.xmltv-*.zip -d ~/.kodi/addons/
3. PVR Addon & EPG Integration
Make sure pvr.iptvsimple is correctly linked with the EPG data:
a. Open Kodi, go to:
* Settings > PVR & Live TV > PVR Clients > IPTV Simple Client > Configure
* Verify EPG location is set to XMLTV
* EPG filename/path should match the URL/path in settings.xml (from step 1c)
b. In the same PVR & Live TV section:
* Ensure EPG is enabled ( General tab)
4. Missing Dependencies?
Rare, but possible. We'll force-reinstall PVR IPTV Simple and its dependencies:
# Stop Kodi (to avoid lock issues)
systemctl stop kodi
# Remove & Reinstall PVR IPTV Simple (via LibreELEC's package manager)
rm -rf ~/.kodi/addons/pvr.iptvsimple
rm -rf ~/.kodi/userdata/addon_data/pvr.iptvsimple
wget -P ~/.kodi/addons/ https://mirrors.kodi.tv/addons/omega/pvr.iptvsimple/pvr.iptvsimple-21.3.1.zip
unzip ~/.kodi/addons/pvr.iptvsimple-21.3.1.zip -d ~/.kodi/addons/
rm ~/.kodi/addons/pvr.iptvsimple-21.3.1.zip
# Restart Kodi
systemctl start kodi
5. Final Checks
- Wait 5-10 minutes after restarting Kodi. EPG data needs to be fetched and cached.
- Open Kodi, go to PVR & Live TV > Guide (or press
G on your keyboard while in TV view).
- Verify channels are listed with program data (guide info).
Still Not Working?
- Clear EPG Cache: In Kodi, Settings > PVR & Live TV > General > Clear EPG cache
- Inspect the EPG XML directly:
wget http://your-iptv-server/epg.xml.gz -O /tmp/epg.xml.gz
gunzip /tmp/epg.xml.gz
cat /tmp/epg.xml | grep -i "your-channel-name" (replace with an actual channel)
- Verify the channel exists in the XML with proper program data.
- Enable Debug Logging:
- In Kodi: Settings > System > Logging > Enable Debug Logging
- Reproduce the issue, then
cat /storage/.kodi/temp/kodi.log > /storage/debug_kodi.log
- Share the log (pastebin or similar) for deeper analysis.
Recap
You've now:
- Verified
pvr.iptvsimple settings and EPG URL/path.
- Confirmed the
xmltv grabber module is present.
- Ensured PVR & EPG integration settings are correct.
- Force-reinstalled PVR IPTV Simple addon.
- Cleared potential EPG cache issues.
EPG should now be working in LibreELEC Kodi. If not, the debug log will reveal the last mysteries.
Happy viewing!