Updating Settings for TVHeadend

 TVH is a well know package. It is widely used but has some odd behaviour. There was a multi threading bug for EPGs that surface years after I started using the software due to a satellite transponder EPG migration. The fix was hard, new Kernel (to fix a USB power down bug) and a later release of TVH.


On the journey, I found a few things

  1. Some folk had broken working code for a make of receiver as they did not want to support chipsets from Asia.
  2. LibreElec on PI has issues with powering down the USB port due to a kernel bug fixed in  5.x. It issue is subtle as activity restarts the hub controller but its enough to glitch a transport stream sat feed.
So once it was working I hard to tweak the TVH setting 

Make a tar of the .hts/tvheadend directory

Make sure the backup worked before overwriting.

# systemctl stop tvheadend

# cd .hts

# mv tvheadend tvheadend.bak

# ls

# cd ..

# bzcat <tarballfilename>.bz2 | tar xvf -

# systemctl start tvheadend


There may be some nonsense or errors around recordings that are in the config but don't exist otherwise should be fine.