Project

General

Profile

Comprehensive XMLTV setup guide

Added by Levente Cseh about 10 years ago

I've been searching the forums and google for a step-by-step guide for XMLTV, but there only seem to be fractions of a complete guide, and for some reason I could only manage once to have EPG based on XMLTV.

Would it be possible to extend my command set I have so far, to get this stuff working again? I guess many users out there would be interested getting a proper guide.
It would be also nice to see a firm answer whether or not the internal grabber feature should be used, or rather the socket version. I'm still running 3.5.247~g098b7de~saucy, and have a mixture of DVB-T and IPTV channels. I would only need the XMLTV EPG data for the IPTV channels since the DVB-T ones do get proper EPG.
As I said, XMLTV was working once, and I have the checkboxes for the channels in the drop-down menus, but even if I run the grabber again it will not show anything.

I've read that I need to login with the HTS user to run the grabber, but I can't find out how to do this, as I guess the hts user has no login capabilities...

So this is what I did so far:

tv_grab_huro --configure
tv_grab_huro --out /home/hts/.xmltv/xmltv.xml
iconv -f iso-8859-1 -t utf8 /home/hts/.xmltv/xmltv.xml > /home/hts/.xmltv/xmltv.tmp
mv /home/hts/.xmltv/xmltv.tmp /home/hts/.xmltv/xmltv.xml
apt-get install socat
tv_grab_huro | socat -unix-connect:/home/hts/.hts/tvheadend/epggrab/xmltv.sock

So far it's not willing to start working, so any help would be highly appreciated, I'm probably missing something, that I did last time...


Replies (5)

RE: Comprehensive XMLTV setup guide - Added by Alex . about 10 years ago

Hi Leventhe,

Levente Cseh wrote:

I've read that I need to login with the HTS user to run the grabber, but I can't find out how to do this, as I guess the hts user has no login capabilities...
So this is what I did so far:
tv_grab_huro --configure
tv_grab_huro --out /home/hts/.xmltv/xmltv.xml

Probably you should not change the outputfilename of tv_grab ( or is xmltv.xml the regular filename you get? )
So, run it as your regular user, and copy it from the .xmltv dir of the regular user to the /home/hts/.xmltv directory.

Then, also check the permissions and ownership of the file in the /home/hts/xmltv dir, and of neccesary change it to hts (you do not mention doing this in your post after you move the file).

Alex.

RE: Comprehensive XMLTV setup guide - Added by Levente Cseh about 10 years ago

Hi Alex,

I do have to specify a filename when running the grabber with --out parameter. I don't think it matters if the grabber puts it directly into the target folder, rather than in the user's directory and copy then to /home/hts/.xmltv. This is why I named it to xmltv.xml

I changed recursively the ownership of the folder, but the EPG is not there after restarting TVHeadend...
I'm doing something wrong...

RE: Comprehensive XMLTV setup guide - Added by Alex . about 10 years ago

Strange.

However, the name of the file should matter shouldn't it ? ( in order to get the internal grabber to see the right file?)
Elsewhere it is named tv_grab_file.xmltv (https://tvheadend.org/boards/12/topics/1664)

But I agree: Copying or moving the file there should be ok as long as it is readable by the tvh user...

A.

RE: Comprehensive XMLTV setup guide - Added by Levente Cseh about 10 years ago

Alex,

I suspect the grabber MUST be run by user "hts".
Therefore this should be invoked:

cd home
sudo chown hts hts
sudo su hts
tv_grab_huro --configure
.
Choose to fetch 'All' channels
tv_grab_huro
(the channels are downloaded)

In TVH set the 'EPG Grabber' like this:
Update channel name: yes
Update channel number: yes
Update channel icon: yes

I'm just waiting for the grabber to download the channel data, and as soon as I can try I will let you know here.

RE: Comprehensive XMLTV setup guide - Added by Levente Cseh about 10 years ago

Okay, this seems to work. However I have no idea where the xml file is created, to submit it for an "iconv"...
I can only see the config file that was created in /.xmltv folder and the supplement folder.

advanced 2 steps, back 1 step. :-)

    (1-5/5)