<br><br>On 25/11/2007, Mike McKay &lt;<a href="mailto:mike.mckay@dsl.pipex.com">mike.mckay@dsl.pipex.com</a>&gt; wrote:<br>&gt; I receive DVB-T (&quot;Freeview&quot;) in the UK using mythTV 0.20.2 running on<br>&gt; Ubuntu 
7.04.&nbsp;&nbsp;I have used various versions of mythTV for about 18 months<br>&gt; and normally receive program data from the Radio Times site using<br>&gt; mythfilldatabase which, in turn, uses tv_grab_uk_rt.<br>&gt; <br>&gt; I recently added a Hauppauge Nova-T 500 to my existing Hauppauge Nova-T
<br>&gt; to give me a total of three tuners and, at the same time, had my antenna<br>&gt; re-oriented to a different transmitter.<br>&gt; <br>&gt; To &quot;retune&quot; my channels I used mythTV_setup, deleted all channels and
<br>&gt; transports, entered the transport details for the new transmitter and<br>&gt; then did a &quot;full scan of existing transports&quot;.&nbsp;&nbsp;(I did it this way after<br>&gt; multiple problems with the simpler, more automated &quot;full scan&quot;.)
<br>&gt; <br>&gt; I then ran mythfilldatabase which did not give the desired results: it<br>&gt; added a completely new set of channels which could not be tuned/received.<br>&gt; <br>&gt; Looking at the database channel table, those channels which were derived
<br>&gt; from the transport scan had the following entries in their columns:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; channum:&nbsp;&nbsp;correct numerical value<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; callsign: name as below, truncated (not, I think, the callsign)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; name:&nbsp;&nbsp;&nbsp;&nbsp; text name
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; sourceid: 1<br>&gt; <br>&gt; Those channels derived from mythfilldatabase had the following entries:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; channum:&nbsp;&nbsp;2nd &lt;displayname&gt; in xmltv entry from ~/.xmltv/channels-list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; callsign: five-digit caps+numeric value (I think this is the callsign)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; name:&nbsp;&nbsp;&nbsp;&nbsp; 1st &lt;displayname&gt; in xmltv entry from ~/.xmltv/channels-list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; sourceid: 1<br>&gt; <br>&gt; My initial conclusions are:<br>&gt; 1.&nbsp;&nbsp;The mythfilldatabase channels cannot be tuned because they have an
<br>&gt; alphanumeric value in the channum column.<br>&gt; 2.&nbsp;&nbsp;The callsign column for the mythfilldatabase channels is a credible<br>&gt; callsign but that from the transport scan channels is not.<br>&gt; 3.&nbsp;&nbsp;From what I see in the channel table I cannot see how mythTV can
<br>&gt; perform an unambiguous correlation between those channels derived from<br>&gt; the transport scan and already in the table, and the channel information<br>&gt; it receives from the Radio Times web site.<br>&gt; <br>
&gt; I&#39;ve now spent considerable time on this but am completely stuck.&nbsp;&nbsp;As a<br>&gt; work-around I&#39;m now using the EIT programme data but it&#39;s not as good as<br>&gt; the Radio Times.<br>&gt; <br>&gt; Can anyone shed any light on this ?&nbsp;&nbsp;Even if you don&#39;t know what&#39;s
<br>&gt; causing the screw-up, it would be useful to know what the channel table<br>&gt; is supposed to contain when everything is working correctly and I am<br>&gt; very interested to know how mythfilldatabase is supposed to work out
<br>&gt; what pre-existing channel corresponds to channel program data obtained<br>&gt; from the RT website.<br>&gt; <br>&gt; Regards,<br>&gt; <br>&gt; Mike<br><br>It&#39;s all about xmltvids. The grabber script updates the channel based on matching xmltvids. If it can&#39;t find a channel with the same xmltvid as in its list it creates a new one.
<br><br>Here&#39;s a little howto I wrote for myself after the last Freeview channel re-ordering:<br><br><br>1) shutdown         mythbackend         <br><br>2) backup         db         <br><br>3) make         copies of tables – channels, program, record, recorded         
<br>&nbsp;&nbsp;&nbsp; (create table pm_channels as select * from channels, etc)<br><br>4) run         mythtv-setup – delete channels and re-scan         <br><br>5) start         mythbackend         <br><br>6) update         channels using SQL/mythweb so xmltvids match         
<br><br>7) make         sure chanids in program, record, recorded match &#39;new&#39; channels         <br><br>8) run         mythfilldatabase         <br>&nbsp;&nbsp;<br>If chanids match then:&nbsp; &nbsp;<br><br>update channel c,pm_channel p&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; set c.xmltvid=p.xmltvid
&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; where c.chanid=p.chanid&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; and c.chanid != 1019; <br><br>update channel c,pm_channel p&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; set c.icon=p.icon&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; where c.chanid=p.chanid&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; and c.chanid != 1019; 
<br><br>update channel c,pm_channel p&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; set c.callsign=p.callsign&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; where c.chanid=p.chanid&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; and c.chanid != 1019; <br><br><br>&nbsp;where 1019 is a channel that has changed <br><br>HTH<br>
-- <br>Paul Mason