XMLTV file
Added by Mikhail Lukyanov almost 10 years ago
Hello,
My IPTV provider get to download the prepared XMLTV file. Give me advice please how to import it to the HTS? Am I right all HTS grabbears generate the XMLTV format files witch then imported to the HTS?
Replies (8)
RE: XMLTV file - Added by Ron L almost 10 years ago
If you are able to download an XMLTV file then you can use this simple grabber to import the file into TVH...
http://code.google.com/p/tv-grab-file/
Open it up in a text editor and edit the path to the XMLTV file you downloaded. Now copy the tv_grab_file to where your XMLTV files are installed on the system. Probably /usr/bin/ and set it executable.
When you restart TVH you'll be able to pick tv_grab_file as the Internal EPG grabber. Save then restart TVH and it should import your channels. You can then start assigning an EPG source to your channels. Restart again and it'll pull in the EPG data.
Now all you need to do is create a cron job to download your XMLTV file on a regular basis.
RE: XMLTV file - Added by Mikhail Lukyanov almost 10 years ago
Hi Ron L,
Thank you so much! I suppose the same questions are quite often appears from new HTS users. It's not so obviously for me to use XMLTV grabber for EPG providing to HTS. Could you answer one more question:
- Am I right when THS run the grabber it just reads the grabber's stdout?
Thank you in advance!
RE: XMLTV file - Added by Ron L almost 10 years ago
I would say so. This grabber cat the XMLTV file you have saved on your drive and TVH reads the stdout.
RE: XMLTV file - Added by Mikhail Lukyanov almost 10 years ago
Thank you so much!
According to debug log XMLTV file was processed and loaded finaly!
RE: XMLTV file - Added by Anton Bungin almost 10 years ago
Can you implement timeoffset for user's timezone?
RE: XMLTV file - Added by Anton Bungin almost 10 years ago
And one more question.
Channel 1 is broadcasted by TVH. XBMC-client uses TVH addon.
Channel 2 is seen in XBMC-client through IPTV Simple addon.
TVH is installed on PC with auto timezone (Moscow, +4 GMT).
XBMC-client is installed on PC with auto timezone (Moscow, +4 GMT).
The current time is the same on both PCs - 16.27.
TVH and IPTVSimple addon use the same XMLTV file with timeoffset (+4).
TVH grabs program info by tv_grab_file.
1. Site info:
Channel 1 - program A starts at 16.00 (Moscow, +4 GMT).
Channel 2 - program B starts at 16.02 (Moscow, +4 GMT).
2. XMLTV-file info:
Channel 1
<programme start="20150206*1600*00 +0400" stop="20150206180000 +0400" channel="46">
Channel 2
<programme start="20150206*1602*00 +0400" stop="20150206164000 +0400" channel="366">
3. TVH GUI:
Channel 1, program A starts at 15.00 (not correct)
4. XBMC-client:
Channel 1 (through TVH addon) - program A starts at 15.00 (not correct).
Channel 2 (through IPTV Simple addon) - program B starts at 16.02 (correct).
Can't understand how to solve the problem.
RE: XMLTV file - Added by Mikhail Lukyanov almost 10 years ago
Anton Bungin wrote:
Can you implement timeoffset for user's timezone?
Hi,
Yes, I've got such problem, but I've just add "sed" command to replace the timeoffset (i.e. sed 's/\+0400/\+0300/g' )
UPD. It seems you've got XMLTV file with wrong timeoffset. According your next post all program guide has the timeoffset +0400 (I suppose it's Moscow time), but current Moscow tie zone is GMT +3 and you should change the timeoffset manually as I adviced you below.
RE: XMLTV file - Added by Mikhail Lukyanov almost 10 years ago
Anton Bungin wrote:
And one more question.
Channel 1 is broadcasted by TVH. XBMC-client uses TVH addon.
Channel 2 is seen in XBMC-client through IPTV Simple addon.TVH is installed on PC with auto timezone (Moscow, +4 GMT).
XBMC-client is installed on PC with auto timezone (Moscow, +4 GMT).
The current time is the same on both PCs - 16.27.TVH and IPTVSimple addon use the same XMLTV file with timeoffset (+4).
TVH grabs program info by tv_grab_file.1. Site info:
Channel 1 - program A starts at 16.00 (Moscow, +4 GMT).
Channel 2 - program B starts at 16.02 (Moscow, +4 GMT).2. XMLTV-file info:
Channel 1
<programme start="20150206*1600*00 +0400" stop="20150206180000 +0400" channel="46">
Channel 2
<programme start="20150206*1602*00 +0400" stop="20150206164000 +0400" channel="366">3. TVH GUI:
Channel 1, program A starts at 15.00 (not correct)4. XBMC-client:
Channel 1 (through TVH addon) - program A starts at 15.00 (not correct).
Channel 2 (through IPTV Simple addon) - program B starts at 16.02 (correct).Can't understand how to solve the problem.
Well, actually I didn't process the same tests, it seems IPTV Simple addon automaticcaly correct the time according your timezone. What will change if you replace timeoffset from +0400 to +0300 in the XMLTV file? Probably TVH will dislay correct time and IPTV Simple client will correct the TV program guide time again. Finaly I would recomend you to use only one PVR addon (I chose the HTS, 'cause I need to record some TV programs, and Kodi not properly work with more than one PVR addon). Hope it help!