create xmltv file from tvheadend

Added by mike smith almost 2 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 almost 2 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 5 months 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 5 months ago

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

RE: create xmltv file from tvheadend - Added by Ulrich Buck 5 months 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 1 month 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 1 month ago

saen acro wrote:

just open or download from
http://user:pass@tvh.ip: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 1 month 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 1 month 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 1 month 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 1 month 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 1 month 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)