Programme guide for 12 stations, rebuilt every 6 hours

BBC (RMS API), LBC News (epgshare01), Antena 1-3 (RTP JSON), RNE, Radio 3,
Radio 5, Radio Clásica (RTVE guide pages) and WBUR (weekly schedule).
IPTV Simple now reloads the list and guide hourly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
XoséandClaude Opus 5.5 committed 2026-11-12 22:28:54 +01:00
1 parent 927195e28d
commit 7ed2e2fb06
6 files changed
+394 -18

No files matched your search

+21
View File
@@ -23,6 +23,27 @@ station list changed. On the first run it turns on *Use channel numbers from
backend* + *always*, so the frequencies show as channel numbers and KodiMov+
keeps Movistar's TV numbers.
## Programme guide
`resources/lib/epg.py` builds `epg.xml` in the add-on's profile folder when
Kodi starts and then every 6 hours (30 minutes after a failed source). A
source that fails keeps its previous programmes (`guide.json`). IPTV Simple
reloads the list and the guide every hour, which is when Kodi takes it.
| Stations | Source |
|---|---|
| BBC Radio 4, World Service, 5 Live | BBC RMS schedule API (`rms.api.bbc.co.uk`) |
| LBC News | epgshare01 UK guide (`epg_ripper_UK1.xml.gz`) |
| Antena 1, 2, 3 | RTP EPG JSON (`rtp.pt/EPG/json/rtp-channels-page/list-grid/radio/<1-3>/...`) |
| RNE, Radio 3, Radio 5, Radio Clásica | RTVE guide pages (`rtve.es/play/guia-rne/<slug>/`) |
| WBUR | WBUR weekly schedule (`api.wbur.org/schedule`) |
No usable source yet: CRTVG (built in JavaScript), SER (blocks scripts),
Onda Cero, esRadio, Radio Marca, WNYC, KQED, NPR, Times Radio, TSF, Observador
and the music stations. To add one, write a function in `epg.py` and map the
station's tvg-id in `CHANNELS`. Test with
`python3 -I resources/lib/epg.py /tmp/epg.xml`.
Uninstalling the add-on leaves that instance behind: remove it in
IPTV Simple's settings (or delete the instance file).