Question about guide based recording and EPG
Added by Marco V. almost 8 years ago
Hi ,
I use TVHEADEND on a raspberry PI 3 with a RTL2832U DVB-T as media storage and recorder for my preferred series.
The front ends are an Android TV box with the KODI media center + NFS/Samba, and some PC but this is not the point.
The problem is that I live in Italy and only SKY Italia provides the weekly guide, for their free to air channels.
The national provider RAI and the first commercial network Mediaset seems to send only the standard guide limited to the current and the next TV program, and this makes the guide based recording functions completely useless for those providers.
After a few searches, I didn't (apparently) find anything usable, so I realized this simple external script starting in background :
#!/bin/bash
export PATH=$PATH:/usr/bin:/bin
while true
do
for i in $(</usr/local/etc/autoepg.list)
do
curl $i >/dev/null 2>/dev/null &
BPID=$!
sleep 5
kill $BPID
sleep 30
done
sleep 900
done
where autoepg.list is the list of links to connect to in the format :
http: //"ip address":9981/play/stream/channel/"code"?title="name"
Note that the autoepg needs to contain only one channel for each provider, because almost all the channels contain the epg for the entire provider.
Every 10 minutes, it loop over the list, and for each channel it tries to download 5 seconds of data separated by 30 seconds of delay.
This method switches among all the listed providers and runs properly so that when I start the Kodi frontend the guide is alreay loaded and, due to the fast access, it does not seem to impact in any way to the media center functionalities.
The guide based works like a charms and records my preferred late night series.
Obviously when the media center is streaming, the TV the script fails every CURL call, but in that case I can upload the guide by jumping manually.
My question is : ok, this works but it is a bit "scary", is there a better solution or something different that I can use to obtain the same effect or something similar, directly into TVHEADEND ?
Thank you.