Hi,
I've got TVH installed via libreelec/kodi.
But I'm migrating it to a standalone ubuntu server.
Not of that is relevant but ... :)
I've got two custom IPTV channels which are streams from my CCTV via ffmpeg to display as channels on all the TV's.
but now I want to add simple EPG data because they look bare.
I also have a IP radio station which I will do the same for once I figure out the static channels.
I have doen research on using the unix socket and appear to have this working but I think my XML file is wrong some how as the channel info have imported and is listed against both channels in TVH web interface, but the EPG data does not list nor show on the TV via kodi unlike all other channels.
I'm importing with:
cat /storage/.kodi/userdata/cctv.xml | curl -d @- -m 5 -X POST --unix-socket /storage/.kodi/userdata/addon_data/service.tvheadend42/epggrab/xmltv.sock http://google.com
The following XML file:
<?xml version="1.0" encoding="UTF-8"?>
<tv generator-info-name="Daves XML">
<channel id="905">
<display-name>Overview</display-name>
<programme channel="905" start="20201127170000 +0000" stop="20201127180000 +0000">
<title lang="en">Overview Cam</title>
<desc lang="en">Live: Overview of the street.</desc>
<date>2020</date>
<category lang="en">CCTV</category>
<episode-num system="onscreen">1</episode-num>
</programme>
</channel>
<channel id="901">
<display-name>Front Door</display-name>
<programme channel="901" start="20201127000000 +0000" stop="20301127000000 +0000">
<title lang="en">Front door Cam</title>
<desc lang="en">Live: Overview of the drive.</desc>
</programme>
</channel>
</tv>
TVH log shows:
2020-11-27 16:58:41.719 [ INFO] xmltv: xmltv: channels tot= 2 new= 0 mod= 0
2020-11-27 16:58:41.719 [ INFO] xmltv: xmltv: brands tot= 0 new= 0 mod= 0
2020-11-27 16:58:41.719 [ INFO] xmltv: xmltv: seasons tot= 0 new= 0 mod= 0
2020-11-27 16:58:41.719 [ INFO] xmltv: xmltv: episodes tot= 0 new= 0 mod= 0
2020-11-27 16:58:41.719 [ INFO] xmltv: xmltv: broadcasts tot= 0 new= 0 mod= 0
Which reading other threads says it's partly working, but it's not recognising the "episode" data.
In TVH GUI the channels EPG source is configured:
CONFIGURATION > CHANNEL/EPG > CHANNELS
Front Door: 901 (XMLTV)
Overview: 905 (XMLTV)
And the "EPG Grabber Channels" tab looks filled out too.
Both of these happened automagically, so I got something right :)
But nothing in the EPG and I've run my script again.
Ideally I want one episode which runs for the next 10 years continuously.
If not, and say I must have 24hr max episodes then I'll write a script to do that accordingly.
I just want to import this once for both channels and call it a day.
Please help if you can, point out where my XML syntax is wrong - I'm sure this is the problem but I cant see the wood for the trees!!