<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">&nbsp;</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 08 Nov 2014, at 19:37, Simon Hobson &lt;<a href="mailto:linux@thehobsons.co.uk" class="">linux@thehobsons.co.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">Thomas Boehm &lt;<a href="mailto:mythtv-users@lists.boehmi.net" class="">mythtv-users@lists.boehmi.net</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class="">Make a list of the channels you want and the channel numbers you want to<br class="">assigb to them and write your own script based on this one<br class=""><a href="https://www.mythtv.org/wiki/Database_editing_script" class="">https://www.mythtv.org/wiki/Database_editing_script</a><br class=""><br class="">It basically hides all channels first, adds 10000 to the channel number,<br class="">then makes the ones you want visible again and assigns the channel<br class="">number of your choice to it.<br class=""><br class="">It's a bit of work to set it up for the first time, but after that you<br class="">just run the script every time you scan for new channels.<br class=""></blockquote><br class="">There's a bit more to it than that.<br class=""><br class="">One way is hinted at on <a href="https://www.mythtv.org/wiki/UK_Channel_Assignments" class="">https://www.mythtv.org/wiki/UK_Channel_Assignments</a><br class="">Have one script per input, I'm assuming the OP has multiple inputs (sounds like 3 different sats), and hence the changes are a bit more complicated.<br class="">So scan one input (one receiver), then run one script to move those channels out of the way. It need only be "set channum=channum+10000 where channum&lt;10000"<br class="">Scan the next one, and move those channels out of the way - eg move them up to 20,000+<br class="">Ditto with the third.<br class="">As long as you always scan te inputs in the same order then you've have your channels in predictable ranges.<br class=""><br class="">Lastly, run a script which organises the channels - delete stuff you definitely will never want, make invisible any that you don't want but might want to take a look through, and shift the ones you do want down to the low numbers - along with setting things like EIT on/off, xmltv ids, etc.<br class=""><br class=""><br class="">The more complicated way means taking account of input number - I think it's sourceid on the table. So you can do things like :<br class="">update channel set &lt;stuff&gt; where sourceid=1 and callsign=&lt;something&gt;”<br class=""><br class=""></div></blockquote><div><br class=""></div>Yes, its 3 satellites.&nbsp;<div class=""><br class=""></div><div class=""><br class=""></div><div class="">The solutions are good, once you know which channel is which. Right now I would have to guess if ITV mean "Italian TV" or something else (just an example, I know the answer) or which NGC is in English and not in French, so I have to check each channel (by tuning, watching, and mark for removal/keeping).</div><div class="">Looking at this chart:&nbsp;<a href="http://www.jdsu.com/ProductLiterature/MPEG_Poster_lowrez.pdf" class="">http://www.jdsu.com/ProductLiterature/MPEG_Poster_lowrez.pdf</a>&nbsp;and this "0.28pre” feature&nbsp;<a href="https://code.mythtv.org/doxygen/classBouquetAssociationTable.html" class="">https://code.mythtv.org/doxygen/classBouquetAssociationTable.html</a>&nbsp;I think I have to be a bit patient….</div><div class="">Hope it gets implemented, and also the CAT will included, so I can select straight from the database which channels are usable. This takes care of deleting a lot of channels, then the sorting can start.&nbsp;</div><div class="">Also the link satellite to sourceid (as I have to do) is not that straightforward, since each satellite contains programs from many countries, so not a single xmltv source. Another script could solve that.</div><div class=""><br class=""></div><div class="">What would life be without challenges :-)&nbsp;</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class="">_______________________________________________<br class="">mythtv-users mailing list<br class=""><a href="mailto:mythtv-users@mythtv.org" class="">mythtv-users@mythtv.org</a><br class="">http://www.mythtv.org/mailman/listinfo/mythtv-users<br class="">http://wiki.mythtv.org/Mailing_List_etiquette<br class="">MythTV Forums: https://forum.mythtv.org<br class=""></div></blockquote></div><br class=""></div></body></html>