TVH Export of the EPG in xmltv Format

Added by Michele Frontier 8 months ago

Hi to all who try to help! I am new here and hassle since a while with EPG Export.

So far i understand, is there a option to export xmltv EPG Data direct out of TVH: https://tvheadend.org/issues/2527

I run TVH on a Server, so if i replace the LOCALHOST with my Server IP where i also access the TVH Backend, i use:

http://myserverip:9981/xmltv/ - Output is then: 1 Unknown Code

Does i understand it wrong somehow? I mean Playlist work on this way, but how can i export the OTA EPG which i see in TVH Backend? I want to use it external, that's why i ask.

Thanks in advance!


Replies (5)

RE: TVH Export of the EPG in xmltv Format - Added by G Kazaroth 8 months ago

1 Unknown Code appears when the uri is not attached to a servlet, i.e., it is unknown to tvheadend. As an example, if you type
http://host:9981/abcd
You will get the 1 Unknown Code. Now what you say you typed is suppose to work. When I type
http://host:9981/xmltv
It will redirect to
http://host:9881/xmltv/channels
which will generate the xml output that can be saved. I am running 4.1.x unstable, so if you are using 4.0.x, that might be the issue.

RE: TVH Export of the EPG in xmltv Format - Added by Michele Frontier 8 months ago

I run 4.0.9 indeed - because unstable sounds not reliable to me?

The issue post which ive mentioned is also 1 year old, how it come that only the latest unstable version work with epg export?

And another q, is there another way to create/use it? Where is the created xmltv file, so i can make me a cron and send it to whereever i want?

RE: TVH Export of the EPG in xmltv Format - Added by G Kazaroth 8 months ago

You are in the same boat I was in a number of months ago. 4.0.x just did not have the features and 4.1.x had a number of features I was really wanting. I have had only minor issues with 4.1, so it has not been bad. The big issue they are working is the ability to use the priority to kick current recordings or even current live TV when a higher priority recording is starting.

Now for the bad news. The build system has been down for about 1 year, so you can get 4.1.2409 from unstable which works except the priority thing. The priority issue is being fixed under issue #3732.
https://tvheadend.org/issues/3732
You can grab and manually install the latest version with those changes from
https://doozer.io/mpmc/tvheadend/builds
I installed tvheadend_4.1-2530~gd57fb7e~xenial_amd64.deb
The only issue I have found is minor and is associated with having overlap recording between 2 recordings on the same channel.

I really do not use the ingested xmltv data from TVHeadend. Instead, I have the xmltv.xml file that tvheadend ingested and I use that. Not sure what your setup is and what grabber you are using. The information on how I am setup is located at
https://github.com/rocky4546/script.xmltv.tvheadend/wiki/Guide:-How-to-Setup-XMLTV-for-TVHeadEnd

RE: TVH Export of the EPG in xmltv Format - Added by Michele Frontier 8 months ago

Thanks for your reply.

I want use the OTA EPG which come over Sat and get shown in the Electronic Program Guide perfect, i thought it get created from tvh in a xmltv file somewhere, or at least i can push it to do so.

your Link mean the other way around, how to use a external xmltv EPG in TVH. That is not what i want to do, i don't use TVH for my frontend or as a Player, nor do i records with. :)

RE: TVH Export of the EPG in xmltv Format - Added by B jzy 5 months ago

Michele Frontier wrote:

Thanks for your reply.

I want use the OTA EPG which come over Sat and get shown in the Electronic Program Guide perfect, i thought it get created from tvh in a xmltv file somewhere, or at least i can push it to do so.

your Link mean the other way around, how to use a external xmltv EPG in TVH. That is not what i want to do, i don't use TVH for my frontend or as a Player, nor do i records with. :)

Perhaps this is what you're trying to do? I run this on a schedule (crontab) and it pulls the XMLTV file for me. Then, I give the .xml file to PlexDVR and it matches the Plex EPG to the channels which are provided by Tvheadend. The xmltv information is basic though and does not appear to include the <category> tag, so Plex currently cannot tell the difference between Movies, Shows, Sports, News, etc (even though this information is available in the Tvheadend GUI).

bjzy@IPTVPlexDVR:~/iptv$ wget http://192.168.X.XXX:9981/xmltv/channels --user=admin --password=admin -O iptvGuide.xml

(1-5/5)