To resolve the EPG issue on your LibreELEC/Kodi setup, follow these steps systematically:
1. Verify PVR IPTV Simple Client Settings
- Open Kodi → Settings → Add-ons → PVR Integrations → PVR IPTV Simple Client.
- EPG Section:
- Ensure "Use EPG" is enabled.
- Confirm the XMLTV file path (e.g.,
/storage/iptv/epg.xml.gz) is correct and matches your file's location.
- Ensure the Timezone matches your location (e.g., "America/New_York").
- Set EPG update interval to 1 hour (or similar) to ensure regular updates.
- General Section:
- Ensure "Enable PVR Manager" is checked.
2. Check XML File Accessibility
3. Clear EPG Database
A corrupted database might prevent EPG from loading. Delete the EPG SQL file:
sudo rm ~/.kodi/userdata/Database/epg.sql
Restart Kodi to rebuild the database.
4. Check Kodi Logs for Errors
Run this command to search for EPG-related errors:
cat /storage/.kodi/temp/kodi.log | grep -i -E 'epg|error|failed'
Look for messages like:
Failed to load EPG data
XMLTV file not found
Invalid timezone
5. Test XMLTV File Integrity
- Use an online XML validator (e.g., XMLTV Validator) to check for syntax errors.
- Temporarily replace your XML file with a known working one (e.g., download a test file) to isolate the issue.
6. Update and Reboot
Ensure LibreELEC and Kodi are fully updated:
sudo libreELEC-update
sudo reboot
7. Disable/Re-enable Add-ons
- Go to Settings → Add-ons → Add-on Manager.
- Disable PVR IPTV Simple Client, then re-enable it. Re-enter settings to ensure they persist.
8. Check System Time
Incorrect time prevents EPG from displaying current programs:
timedatectl status
If time is wrong, force an NTP sync:
sudo timedatectl set-ntp true
9. Manual EPG Update Test
Force an EPG update manually:
10. Reinstall PVR IPTV Simple Client
If all else fails, reinstall the add-on:
sudo apt remove kodi-pvr-iptvsimple
sudo apt install kodi-pvr-iptvsimple
Final Steps
After completing these steps:
- Wait 10–15 minutes for EPG updates to process.
- Restart Kodi again.
- Check the guide in TV → Guide.
If the issue persists, share the full log output from cat /storage/.kodi/temp/kodi.log | grep -i -E 'epg|error|failed' for further analysis.