<div class="gmail_quote">On Mon, Aug 17, 2009 at 2:17 PM, Hadley Rich <span dir="ltr">&lt;<a href="mailto:hads@nice.net.nz">hads@nice.net.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Mon, 2009-08-17 at 14:03 +1200, Aaron Drysdale wrote:<br>
&gt; What is the easiest way to add this into my system? Do I have to scan<br>
&gt; from the backend? Past experience with this has been painful, as I have<br>
&gt; often lost the channel icons and also have to re enter all my xmltv IDs.<br>
&gt; Also I have two tuners - a Nova-T 500 and Nova-S 500, so twice the pain<br>
&gt; if I do it this way. Any tips on an easier method would be gratefully<br>
&gt; received.<br>
<br>
</div>I just insert a record directly into the mysql table myself. Note that<br>
this may break things and isn&#39;t a supported way of changing settings.<br>
<br>
Something like;<br>
<br>
INSERT INTO channel(chanid, channum, freqid, sourceid, callsign, name,<br>
icon, xmltvid, visible, mplexid, serviceid) VALUES($1, 4, 4, $2,<br>
&#39;Prime&#39;, &#39;Prime&#39;, &#39;/home/hads/.mythtv/channels/prime.jpg&#39;,<br>
&#39;<a href="http://prime.sky.co.nz" target="_blank">prime.sky.co.nz</a>&#39;, 1, $3, 1928);<br>
<br>
You need to sort out $1, $2 and $3, and possibly adjust channel numbers,<br>
icons, and xmltvids to suit your system.<br>
<br>
SELECT MAX(chanid) + 1 FROM channel;<br>
<br>
will give you $1;<br>
<br>
SELECT * FROM videosource;<br>
<br>
will give you $2, and;<br>
<br>
SELECT mplexid FROM dtv_multiplex WHERE frequency = 12456000;<br>
<br>
will give you $3. You should be able to do all that in one query too.</blockquote><div><br>This is how I did it as well. One shortcut for figuring out mplexid and sourceid is to look at what is in the channel table for one of the other channels on the same multiplex. E.g. for Satellite you can copy the values used for TV 3.<br>
<br>Cheers,<br>Steve <br></div></div>