Project

General

Profile

python3 htsp

Added by B. Ziggenfeld almost 4 years ago

Hi!

Anyone got a working htsp client (tvheadend 4.x) for python3 or any other scripting language (linux)?

I'm not a programmer, but i'm able to modify and extend scripts to make them work usually. I do have a working solution for python2 with a little wrapper script, but i can't get beyond authentication on python3 which fails. I know it has to do with python3 changes to string/unicode.

Things i tried:

1) check and applied changes
https://tvheadend.org/projects/tvheadend/search?utf8=%E2%9C%93&q=python3&scope=&all_words=&all_words=1&titles_only=&changesets=1&attachments=0&options=0&commit=Search

2) compard it to another possible solution:
https://github.com/chkuendig/python-htspclient

3) modified both solutions, but authentification always fails

So anyone got a working solution and is willing to share it?

Ty,
BB


Replies (1)

RE: python3 htsp - Added by G Kazaroth almost 4 years ago

Probably not the easiest question to answer. The HTSP interface used with tvheadend is a C library which most people write something in C to interact. BUT... there are python wrappers that will take the C code and provide the HTSP interface in python. One is the Kodi hts-pvr plugin. The released version is written in python2, available on github and is for the Kodi version Leia. The next Kodi version is in Beta and uses python3, so there you go. hts-pvr may not have all the dependencies upgraded to the new Matrix version, but the result is a very nice interface. I have been using the Kodi interface for almost 10 years.

    (1-1/1)