XMLTV Scanning but not parsing
Added by Tony Leach over 2 years ago
Hi,
I have an issue where I am trying to use the internal XMLTV epg grabber. I have had various issues even getting it to run but after much fidling about I seem to have got this sussed but seem to be stuck on getting the data parsed into the EPG.
I am running Tvheadend version 4.3-2027~ge3f4f222e and when I trigger the internal grabber I get the following output on the log:
2022-07-15 08:33:33.593 spawn: [Fri Jul 15 08:33:33 2022] Fetching listings: 100%
2022-07-15 08:33:33.636 spawn: unknown key image in programme hash
2022-07-15 08:33:33.825 xmltv: /bin/tv_grab_uk_tvguide: grab took 342 seconds
2022-07-15 08:33:33.827 xmltv: /bin/tv_grab_uk_tvguide: parse took 0 seconds
2022-07-15 08:33:33.827 xmltv: /bin/tv_grab_uk_tvguide: channels tot= 4 new= 1 mod= 1
2022-07-15 08:33:33.827 xmltv: /bin/tv_grab_uk_tvguide: brands tot= 0 new= 0 mod= 0
2022-07-15 08:33:33.827 xmltv: /bin/tv_grab_uk_tvguide: seasons tot= 0 new= 0 mod= 0
2022-07-15 08:33:33.827 xmltv: /bin/tv_grab_uk_tvguide: episodes tot= 0 new= 0 mod= 0
2022-07-15 08:33:33.827 xmltv: /bin/tv_grab_uk_tvguide: broadcasts tot= 0 new= 0 mod= 0
2022-07-15 08:33:33.827 xmltv: /bin/tv_grab_uk_tvguide: scheduling save epg timer
2022-07-15 08:35:33.000 epgdb: snapshot start
2022-07-15 08:35:33.000 epgdb: queued to save (size 57)
2022-07-15 08:35:33.000 epgdb: broadcasts 0
2022-07-15 08:35:33.000 epgdb: save start
2022-07-15 08:35:33.001 epgdb: stored (size 79)
I know the grabber seems to be working because it is creating files at the following location : :///home/hts/.xmltv/cache/ however when I open these files it states that they are html files which is a little surprising as I was expecting them to be XML type files.
I have looked through this forum and i think people maybe having similar issue but I have been unable to find the golden bullet to fix the issue.
Can anyone help. Many thanks
Replies (2)
RE: XMLTV Scanning but not parsing - Added by Tony Leach over 2 years ago
After more investigation I believe this maybe a bug in Tvheaded.
I have tried running the following command from the command line as user hts : "tv_grab_uk_tv_guide --days 3 --output /home/hts/mylisting"
and it generated an xml with the relevant channel information. Therefore I think this confirms that the XMLTV grabber is working and configured correctly.
However Tvheadend doesn't seem to do anything with the output.
Anybody got any ideas or should I post a bug?
RE: XMLTV Scanning but not parsing - Added by Tony Leach over 2 years ago
OK folks looks like I have sorted my problem and surprise surprise the issue wasn't xmltv or Tvheadend but due to the configuration.
Essentially when I set-up the "tv_grab_uk_tvguide.conf" file I wrongly assumed that you could select any version of the wanted channel (see below) but discovered that not all channels actually return any data and hence the EPG wasnt populated.
channel!1767 # Sky Cinema Action HD channel!1759 # Sky Cinema Action HD channel!1790 # Sky Cinema Action HD channel!1765 # Sky Cinema Action HD channel!1860 # Sky Cinema Action HD channel!1836 # Sky Cinema Action HD channel=1786 # Sky Cinema Action HD channel!1832 # Sky Cinema Action HD channel!1344 # Sky Cinema Action HD channel!1633 # Sky Cinema Action HD
In the above list only channel 1786 actually pulls the epg data
I discovered this by manual triggering the grabber and saving the output to a file by using the following command:
tv_grab_uk_tv_guide --days 1 --output /home/hts/mylistings
I am currently pulling together a list of channels that actually return data and will post when finished.
I am also planning on putting together a howto for UK users as this took me an age to figure out and perhaps it may help someone in the future.
Cheers