I've written a new article explaining how to record and watch TV on a Raspberry Pi:
http://unixetc.co.uk/2019/11/22/how-to- ... pberry-pi/
The set up of OSMC/TVHeadend is described in detail, from scratch. I hope it does not duplicate existing resources too much.
The latest versions of OSMC/Kodi/TVH are used (at the time of writing). Also covers Flirc remote control setup, modifying Kodi font sizes, tuner setup, TVH optimization, power supply selection, recommended hardware, ongoing power consumption (6W!) and adding storage.
I hope somebody finds it useful, because it took many hours of testing. Truth is, I've had some time on my hands due to illness, and needed to replace an ageing Topfield DVR. Rather than go the Humax/Panasonic route, and having been a Unix sysadmin for 25 years, I decided to try the Pi setup. And, so far, it does make a good Toppy replacement.
Nothing is quite as nice as a Topfield though.