[mythtv-users] tv_grab_uk_rt hanging?

Mike Perkins mikep at randomtraveller.org.uk
Fri Feb 23 16:40:38 UTC 2007

Nick Morrott wrote:
> On 23/02/07, David Campbell <dave at cpfc.org> wrote:
>> David Watkins wrote:
>>> I think it's waiting for input from you, to select channels. That's
>>> what the --configure switch does.
>>> If you tab to the terminal window where you started mythtv-setup you
>>> should be able to go through the (text-based) xmltv config; and when
>>> you finish you will be back to the mythtv-setup screen.
>> Thanks - that was the case.
>> Setup and mythfilldatabase both ran successfully but I'm still not
>> seeing any programme information when changing channels etc.  perhaps
>> I'm missing something specifc to UK channels?
> Make sure you have XMLTV IDs associated with all channels you
> configured in mythtv-setup. You can use either mythtv-setup or MythWeb
> to do this.
> Nick
That would be the UK gotcha. If you scroll all the way down past your 
radio stations you will find a duplicate set of channels which xmltv has 
stored for you. The callsigns are different, and the channums are mostly 
alphanumeric. These are the ones which have the EPG information added.

This happens because the grabber uses the <source>.xmltv file to work 
out which stations to query. This file has a line for each station in 
the form of "channel <xmltvid>". xmltvid for the UK is a DNS name, to 
which the grabber probably prepends "xml." or somesuch. However, the 
output from the grabber which is used to update the database uses a 
different key, probably the callsign. Since the callsigns created by the 
  scan when you originally set up the source differ from the xmltv ones, 
a whole new set of channel entries get created.

It's a real pain to have to manually fix the database (edit the xmltvids 
of the ones you want, usually numbered, and delete the dups). Things can 
get even weirder if you edit the channel list at all, so it doesn't 
match the <source>.xmltv file. Since using one key to get the data, and 
another key to update the database is probably not what is wanted, I am 
thinking of raising a bug for this issue, when I get enough time to 
figure out a solution.

Mike Perkins

More information about the mythtv-users mailing list