Geiles HowTo...
Hab einen TVHeadend internal EPG Grapper wieder zum Laufen gebracht. Möglicherweise interessiert das den ein oder anderen, der das TVHeadend als stand alone host laufen lassen will oder einfach nur von einem zweiten Endpoint mit Kodi auf das gleiche Backend zugreifen zu können.
Hier mein addon, habs jetz net nochma übersetzt:
1. I used TVHeadend 4.2 since it's the first version having the external XMLTV grabber already in it.
2. Get all the channels running as above (Part 1).
3. Activate "External: XMLTV" Grabber Module via Configuration --> Channel / EPG --> EPG Grabber Modules. Don't forget to save.
I rebooted the VM (Server) afterwards, maybe someone can tell if this is really necessary.
You might want to check the /home/hts/.hts/tvheadend/epggrab/xmltv.sock is created using the command:
4. Check if an XML for your country exists on http://http://http://koditvepg.com/epg/ . Get the name. I used the German one in my example, so replace it with your country's filename everywhere below.
5. I built a script to grab the EPG:
#!/bin/bash
rm /home/hts/xmltvlog/xmltv.[definition='1','0']log[/definition]
rm /home/hts/ger.xml*
echo "Download starting..." >> /home/hts/xmltvlog/xmltv.[definition='1','0']log[/definition]
echo "Time: $(date)" >> /home/hts/xmltvlog/xmltv.[definition='1','0']log[/definition]
wget http://koditvepg.com/epg/ger.xml -P /home/hts -nv -a /home/hts/xmltvlog/xmltv.[definition='1','0']log[/definition]
cat /home/hts/ger.xml | sudo socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
echo "" >> /home/hts/xmltvlog/xmltv.[definition='1','0']log[/definition]
echo "Time: $(date)" >> /home/hts/xmltvlog/xmltv.[definition='1','0']log[/definition]
echo "EPG Updated successfully." >> /home/hts/xmltvlog/xmltv.[definition='1','0']log[/definition]
Copy & paste this into a file of your choice. I used /home/hts/epggrab and my favorite editor:
Make it executeable:
6. Get the script running periodically by crontab. I just added these two lines to /etc/crontab . Will run at 2 am and 2 pm. Make sure to use tabs as in the lines above, as far as I have it in mind crontab will not work without:
7. You might want to run the srcipt once now or wait until it's run by cron.
8. Comment this in case there is a typo or it does not work...
I have a screenshot from my TVHeadend here, too. Not easy to upload...
Cheers,
Nic