Proxy Kodi

Wondering if anyone has played around with this. This is a Kodi proxy designed for tvheadend. Wondering if it can be customised to serve to the Channels DVR.

git clone https://github.com/matthuisman/kodi.proxy
cd kodi.proxy
pip install virtualenv
virtualenv --python=python2.7 .env
source .env/bin/activate
pip install -r requirements.txt
chmod +x proxy.py
chmod +x tvh.sh
./proxy.py

Example url

pipe:///root/kodi.proxy/tvh.sh "plugin://plugin.video.kayo.sports/?_=play&_play=1&id=53208&play_type=2&start_from=0&_l=.pvr"


Thanks