<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Sep 19, 2014 at 9:01 AM, R. G. Newbury <span dir="ltr">&lt;<a href="mailto:newbury@mandamus.org" target="_blank">newbury@mandamus.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Recording rules (going forward) may use the chanid  if you have any &#39;This Channel&#39; selections. That is effectively, the only place where chanid is a selectable usable choice for the user (even though the actual chanid is never visible to the user).<br></blockquote><div><br></div><div>I believe the recording rules use the callsign, not the chanid or channum or xmltvid.<br> <br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When you add new channels it may reuse<br>
chanid&#39;s previously in use, basically scrambling the channel ids on<br>
every recorded program.<br>
</blockquote>
<br>
How could it &#39;scramble&#39; the chanid&#39;s? Once the program has been recorded, mythtv only retains the information for informational purposes. You may want to re-record a previously recorded program if you can see that it was recorded as SD, but is now available as HD.<br></blockquote><div><br>Basically the chanid is stored with the recorded program, and deleting the video source loses that link. If you delete ALL video sources, then re-creating the video source is likely to re-use chanids and they may not be the same as before. This matters to me because I have a number of movies that I&#39;ve recorded on &quot;normal&quot; channels and I wrote a script which tells me when the movies are re-airing on comm free channels so I can schedule them to re-record. If myth had stored the xmltvid or even the callsign with the recording it could have a chance of matching them up after re-creating video sources but that&#39;s not how it&#39;s set up, so it&#39;s left with broken foreign keys.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So matching chanid&#39;s *exactly* what you want to do. You want to re-use the chanids so that it is seamless and the old programs/channels match the new programs.<br>
( That is for our convenience: mythtv does not care. If you used to have Time-Warner and now have Comcast, the fact that the old channel &#39;not longer exists&#39; is irrelevant to your present and on-going use.<br>
<br>
If you &#39;Delete All Video Sources&#39; in mythtv-setup you can then (re)create them in the sd-utility, If you do so in the same order, the chanid&#39;s will be replicated.<br></blockquote><div><br></div><div>Hopefully...<br></div></div><br></div><div class="gmail_extra">Karl<br></div></div>