LinHES Forums
http://forum.linhes.org/

UK: sat channels that change
http://forum.linhes.org/viewtopic.php?f=15&t=19164
Page 1 of 1

Author:  stinga [ Thu Oct 30, 2008 4:31 am ]
Post subject:  UK: sat channels that change

G'day all,

Since I have been using sat. for channels rather than over the air, I have come across the situation where channels move and then recording fails.
This has become more of an issue lately with freesat coming online.

So I have written a chunk of perl and added a table to mysql to try and fix the problem.

Basically...
Run a scan, save the output
Process the output, comparing the scan data with the mysql tables channel and dtv_multiplex.

At the moment, it outputs the sql commands that would be used to change the tables.

It works... mostly.

The problem I have is when we need to point to a new dtv_multiplex row.
I can do a search looking for frequency, polarity and symbol rate and if I find one that matches then I can change channel.mplexid fine.
The problem I have is when we can't match to an existing dvt_multiplex, I need to create a new one, which I think I can do by manually looking at lyngsat and getting the data from there, I can get some of the data from the scan output.

My question is, does anyone know hoe mythtv does it, it adds rows to dtv_multiplex so it must find the data.
I can look through the source code but thought someone might already have the information.
Or is there another script I can run
... any other ideas?

This should work for other countries as well and maybe even dvb t/c, but I can't test that.

Or maybe someone has already done this?

The extra table I added was to keep track of channels I am not interested in and I change the channel names from what is scanned to what is in the guide etc. I.E. ITV1 <region> becomes ITV
Also the new table allows me to report new channels that appear.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/