setting up XMLTV in libreelec addon TVH server

  • I setup 9.2.0 on a RP4 and have that working with TVH server using OTA EPG data and now want to test the XMLTV option. I have a server running a daily script to create an XMLTV.xml file from zap2it. I thought it would be easy to configure XMLTV in Kodi to point to the file using NFS. I had no issue getting kodi to see the file on my server via nfs, but in the tvh log on the web interface I get this error:

    Code
    2019-12-09 08:32:20.000 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: grab /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file
    2019-12-09 08:32:20.008 spawn: Executing "/storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file"
    2019-12-09 08:32:20.100 spawn: cat: can't open 'nfs://192.168.0.250/mnt/md1/samba/public/media/zap2xml-data/xmltv.xml': No such file or directory
    2019-12-09 08:32:20.102 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: no output detected
    2019-12-09 08:32:20.102 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: grab returned no data

    If I use SMB and copy the file to the RP4 systems internal drive, I can point TVH XMLTV to that internal location and the grabber works.

    So 2 questions, can I not make this work over the Network? And 2nd, Is there not a way to have all the XMLTV stuff done locally on the LibreELEC system?

  • Sorry for the noise. I missed the part about how to mount NFS drives. That is done so now I move to my more relevant questions:

    Once I have the XMLTV.xml file pointed to correctly I can rerun the internal RPG grabbers and I get the following log.

    Code
    2019-12-09 10:08:10.664 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: grab /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file
    2019-12-09 10:08:10.675 spawn: Executing "/storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file"
    2019-12-09 10:08:10.961 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: grab took 0 seconds
    2019-12-09 10:08:10.986 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: parse took 0 seconds
    2019-12-09 10:08:10.986 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  channels   tot=   21 new=    0 mod=    0
    2019-12-09 10:08:10.986 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  brands     tot=    0 new=    0 mod=    0
    2019-12-09 10:08:10.986 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  seasons    tot=    0 new=    0 mod=    0
    2019-12-09 10:08:10.986 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  episodes   tot=    0 new=    0 mod=    0
    2019-12-09 10:08:10.986 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  broadcasts tot=    0 new=    0 mod=    0

    I see the 21 channels but I don't see any other guide information. What step am I missing??

    I added in my 4 HDHR networked tuners and the scan found 27 channels.

    How do I marry up the XMLTV data and the channels?

  • I'm not sure this is the correct way to do this but it worked. Using the web page for configuring TVheadend I went to the Channels configuration page and each channel has a blank EPG source field. I manually edited each channel EPG source and the dropdown had a matching channel from the XMLTV EPG list.

    Once all the channels were edited I could running the grabber again and the EPG populated.