A small flask app to proxy requests between Plex Media Server and Tvheadend. This repo adds a few critical improvements and fixes to the archived upstream version at jkaberg/tvhProxy:
KEY=VALUE
pairs in a .env
file.$ python3 -m venv .venv
$ . .venv/bin/activate
$ pip install -r requirements.txt
$ python tvhProxy.py
A startup script for Ubuntu can be found in tvhProxy.service (change paths and user in tvhProxy.service to your setup), install with:
$ sudo cp tvhProxy.service /etc/systemd/system/tvhProxy.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable tvhProxy.service
$ sudo systemctl start tvhProxy.service
Enter the IP of the host running tvhProxy including port 5004, eg.: 192.168.1.50:5004
, use http://192.168.1.50:5004/epg.xml
for the EPG (see Using XMLTV for guide data for full instructions).
Should the proxy keep disappearing or you can't add it, it's worth trying to delete the existing configuration from the database:
delete from media_provider_resources;
to remove any leftover config.