Bug #3222
EPG empty in latest version from git: HTS Tvheadend 4.1-784~g9d28df5
100%
Description
Today I updated TVH to HTS Tvheadend 4.1-784~g9d28df5 from a version I compiled on 20151023.
My EPG is completely empty now, it used to work fine. I use an external program to generate an xmltv file and I use tv_grab_file that cat's the xmltv file.
In the log it says:
2015-10-29 19:18:49.977 [ INFO]:/usr/bin/tv_grab_file: grab took 0 seconds
2015-10-29 19:18:50.024 [ INFO]:/usr/bin/tv_grab_file: parse took 0 seconds
2015-10-29 19:18:50.024 [ INFO]:/usr/bin/tv_grab_file: channels tot= 227 new= 0 mod= 0
2015-10-29 19:18:50.024 [ INFO]:/usr/bin/tv_grab_file: brands tot= 0 new= 0 mod= 0
2015-10-29 19:18:50.024 [ INFO]:/usr/bin/tv_grab_file: seasons tot= 0 new= 0 mod= 0
2015-10-29 19:18:50.024 [ INFO]:/usr/bin/tv_grab_file: episodes tot= 0 new= 0 mod= 0
2015-10-29 19:18:50.024 [ INFO]:/usr/bin/tv_grab_file: broadcasts tot= 0 new= 0 mod= 0
When I manually run /usr/bin/tv_grab_file, the output is as expected, one big piece of text output in the terminal.
Files
History
Updated by Jaroslav Kysela about 9 years ago
Look to EPG channel mapping - it's new tab. It should give you a clue what's wrong.
Updated by Mr. Blond about 9 years ago
Jaroslav Kysela wrote:
Look to EPG channel mapping - it's new tab. It should give you a clue what's wrong.
There is indeed something wrong, I have no clue what it should be, but this does not look good...
Previously I only used /usr/bin/tv_grab_file. Now I see tv_grab_file2 and all kind of socks. Any idea?
Updated by Jaroslav Kysela about 9 years ago
You must have tv_grab_file2 enabled in your EPG grabber modules, because it fetches new data. You also see which channels are visible (updated). Unfortunately, previously were all xmltv sources mixed together and the current implementation differentiate among sources, so if you dont use 'Auto EPG name', then you should remove the dead EPG channels and remap wanted.
Updated by Mr. Blond about 9 years ago
Jaroslav Kysela wrote:
You must have tv_grab_file2 enabled in your EPG grabber modules, because it fetches new data. You also see which channels are visible (updated). Unfortunately, previously were all xmltv sources mixed together and the current implementation differentiate among sources, so if you dont use 'Auto EPG name', then you should remove the dead EPG channels and remap wanted.
Hmz, I disabled tv_grab_file2 a very long time ago (when I was having troubles with EPG back then), also see screenshot.
Could you elaborate more on: "Unfortunately, previously were all xmltv sources mixed together and the current implementation differentiate among sources, so if you dont use 'Auto EPG name', then you should remove the dead EPG channels and remap wanted." I have no idea what you mean here. E.g. where can I set 'Auto EPG name' and what do you mean with xmltv sources being mixed together?
Updated by Jaroslav Kysela about 9 years ago
Do you see something about tv_grab_file2 in logs ? I cannot reproduce here.
Basically, when you run newer tvh on older config, all channels are associated to inputs.. Previously, all XMLTV channels were stored in one bag, and the new version simply does not know which XMLTV grabber pushed data to this bag. So these channels are associated to .sock grabber (external).
I would suggest just remove the whole mapping (select everything in the mapper grid and delete it), restart tvh and do mapping again. The only issue is that you see active tvh_grab_file2 grabber which should be disabled.
The 'Auto EPG' flag is in the channels config and TVH tries to match the EPG channels using the channel names or channel numbers automatically (which does not work in many cases).
Updated by Mr. Blond about 9 years ago
- File Screen Shot 2015-10-30 at 21.06.33.png Screen Shot 2015-10-30 at 21.06.33.png added
- File Screen Shot 2015-10-30 at 21.06.50.png Screen Shot 2015-10-30 at 21.06.50.png added
- File Screen Shot 2015-10-30 at 21.06.53.png Screen Shot 2015-10-30 at 21.06.53.png added
Hi Jaroslav, with your info I was able to clear my complete mapping and I remapped most of my channels.
I do see another strange behaviour now. I have quite a few channels in both SD and HD quality. I map them to the same epg source. However, for all the channels that are in both HD and SD, one of the EPG's is empty.
What am I doing wrong?
See attachments.
Updated by Jaroslav Kysela about 9 years ago
Probably wrong question, but are you sure that you run the grabber when the mapping was finished ? The events are duplicated only at "import" time.
Alternatively, you may 'Reuse EPG from' in the channel setup. It's more efficient.
Updated by Mr. Blond about 9 years ago
I am quite sure, I explicitly triggered a new grab by changing something in the EPG Grabber menu, which forces a grab, stating in the log:
2015-10-30 22:50:33.792 /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2015-10-30 22:50:33.797 spawn: Executing "/usr/bin/tv_grab_file"
2015-10-30 22:50:33.976 /usr/bin/tv_grab_file: grab took 0 seconds
2015-10-30 22:50:35.617 /usr/bin/tv_grab_file: parse took 2 seconds
2015-10-30 22:50:35.617 /usr/bin/tv_grab_file: channels tot= 227 new= 0 mod= 0
2015-10-30 22:50:35.617 /usr/bin/tv_grab_file: brands tot= 0 new= 0 mod= 0
2015-10-30 22:50:35.617 /usr/bin/tv_grab_file: seasons tot= 0 new= 0 mod= 0
2015-10-30 22:50:35.617 /usr/bin/tv_grab_file: episodes tot=36854 new= 0 mod= 0
2015-10-30 22:50:35.617 /usr/bin/tv_grab_file: broadcasts tot=36854 new= 0 mod= 0
The "Reuse EPG from" does solve this problem, but that would mean a lot of manual work (again)... Any other ideas?
Updated by Jaroslav Kysela about 9 years ago
The loop which should duplicate events is here: https://github.com/tvheadend/tvheadend/blob/master/src/epggrab/module/xmltv.c#L600-L605 if you want to do some hacking.
Updated by Jaroslav Kysela about 9 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|d445d17551969ebc12d42a8da34e5f7165e93a28.