Project

General

Profile

create xmltv file from tvheadend

Added by mike smith over 8 years ago

hi

is it possibele to create xmltv file from the epg that tvheadend get from dvbt?

i need to catch the epg coming from dvbt and save as xmltv file


Replies (14)

RE: create xmltv file from tvheadend - Added by Ulrich Buck over 8 years ago

It is possible.

I once created a python script for it which uses https://github.com/tvheadend/tvheadend/tree/master/lib/py/tvh

If you yould like to have the script I can post it on pastebin.com

RE: create xmltv file from tvheadend - Added by B jzy over 7 years ago

hi - do you still have this script and does it work? Tvheadend implemented XMLTV export, but does not include <category> tag. Wondering if your script provides this. Thanks!

RE: create xmltv file from tvheadend - Added by saen acro over 7 years ago

PVR.TVH use tag's but get them from htsp protocol (:9982).

RE: create xmltv file from tvheadend - Added by Ulrich Buck over 7 years ago

Hi B jzy

Still have that script and it works at my end. The script provides <category> mapped from TVH "Content Type" such as "Movie / Drama" or "Sports".

Find the script at https://pastebin.com/e3j2Wppb

RE: create xmltv file from tvheadend - Added by Raffale Giovedì about 7 years ago

Ulrich Buck wrote:

Hi B jzy

Still have that script and it works at my end. The script provides <category> mapped from TVH "Content Type" such as "Movie / Drama" or "Sports".

Find the script at https://pastebin.com/e3j2Wppb

Hello!

The link on pastebin has expired... can you post it again please?

Thanks!

RE: create xmltv file from tvheadend - Added by Raffale Giovedì about 7 years ago

saen acro wrote:

just open or download from
http://user:[email protected]:9981/xmltv

I don't understand, this way I will get an xmltv export with categories??

RE: create xmltv file from tvheadend - Added by Raffale Giovedì about 7 years ago

Ulrich Buck wrote:

Posted the script again at https://pastebin.com/uh849rZa

I get this errore when I try to run it:

Traceback (most recent call last):
  File "./getTVHGuide.py", line 29, in <module>
    from tvh.htsp import HTSPClient
ImportError: No module named tvh.htsp

I can't find any file called tvh.htsp :(

RE: create xmltv file from tvheadend - Added by Ulrich Buck about 7 years ago

The script uses python module https://github.com/tvheadend/tvheadend/tree/master/lib/py/tvh

In my case (Linux Mint 17.3) it is stored under /usr/lib/python2.7/dist-packages/tvh

RE: create xmltv file from tvheadend - Added by Raffale Giovedì about 7 years ago

I don't have this directory...
Maybe I have to install some libraries?

RE: create xmltv file from tvheadend - Added by Ulrich Buck about 7 years ago

The six files found under https://github.com/tvheadend/tvheadend/tree/master/lib/py/tvh need to be installed under /usr/lib/python2.7/dist-packages/tvh (or the corresponding path on your computer).

It is a bit difficult to get individual files or subdirectories from github. You can find them at https://uploadfiles.io/i8zx8

RE: create xmltv file from tvheadend - Added by Em Smith about 7 years ago

Perhaps it would be useful to upload the script file here? That will allow people in the future to have access to it even if pastebin expires it again.
Thanks.

    (1-14/14)