Autoreconf
Added by Anonymous about 11 years ago
Hi
I'm a german user and I'm watching german pay tv with tvh. Sadly the german pay tv providers are changing the channel locations a lot lately and I'm looking into writing something that is able to automagically reconfigure the channels during night so that I don't see blank spots in my channels list on my tellies.
At first I've been looking into Python to write out the whole dvbmux and channel configuration to ~/.hts/tvheadend/* but now I wonder if it wouldn't be better to use the lib of tvheadend todo the trick.
So what I'm basically asking for is a starting point in the source on what to read to be able to "feed" the config writing stuff with the necessary data to write out the new configurations.
The data needed comes from a nightly scan I'll run with w_scan or similar tools.
Thanks!
KR,
G.
Replies (2)
RE: Autoreconf - Added by Kev S about 11 years ago
Another possibility might be to use the JSON queries that power the web interface - it's the way I get alerted about channel changes - about one change a fortnight on the UK FTA services. See the attached (won't work without my sqlite database files - the PDO2 class is basically extending it so "performQuery" does all the prepare, execute nonsense.
TVHeadend does seem to be a bit temperamental though - if you get the requests wrong it crashes and restarts
check_dvb_v2.php (21.9 KB) check_dvb_v2.php |
RE: Autoreconf - Added by Anonymous about 11 years ago
Hi,
thanks, but I don't think I want to go via the WebUI or its JSON queries.
I'm looking for a fast, one way, working solution and not a complicated setup.
But thanks for the suggestion.
KR,
G.