Skip to content

chkuendig/tvhProxy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 23 commits ahead of jkaberg:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

tvhProxy

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:

  • SSDP Discovery. Fixes the issue of Plex randomly dropping the device.
  • XMLTV EPG EPG export, including adding dummy programme entries for channels without EPG so you can still use these channels in Plex (see below for Plex configuration URL)
  • Configuration of variables via dotenv file

tvhProxy configuration

  1. Check tvhProxy.py for configuration options and set them up them as KEY=VALUE pairs in a .env file.
  2. Create a virtual enviroment: $ python3 -m venv .venv
  3. Activate the virtual enviroment: $ . .venv/bin/activate
  4. Install the requirements: $ pip install -r requirements.txt
  5. Finally run the app with: $ python tvhProxy.py

systemd service configuration

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

Plex configuration

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:

About

An small flask app to help Plex DVR connect with tvheadend (incl. EPG)

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 96.7%
  • Shell 2.3%
  • Dockerfile 1.0%