There are two places something like that would be needed, the loading of the service list and that portiion which is used for updating when a channel is added/moved/deleted.I might not be reading it right but this looks like the bit that does the renumbering (lines: 226-228 of the patch)
+ eDebug("Current number '%d' renumbering to '%d' channel '%s'", tmp.channel_num, startChannelNum, tmp.getName().c_str()); + tmp.channel_num = startChannelNum++; + eDebug("Updated number to '%d' channel '%s'", tmp.channel_num, tmp.getName().c_str());
Would this sort of thing work?if( startChannelNum > tmp.channel_num ) { eDebug("Current number '%d' renumbering to '%d' channel '%s'", tmp.channel_num, startChannelNum, tmp.getName().c_str()); tmp.channel_num = startChannelNum++; eDebug("Updated number to '%d' channel '%s'", tmp.channel_num, tmp.getName().c_str()); } else { eDebug("Current number '%d' not renumbered to '%d' channel '%s'. Number out of sequence.", tmp.channel_num, startChannelNum, tmp.getName().c_str()); startChannelNum = tmp.channel_num; }
However there is a problem to doing a check like that, if you want to start the next bouquet at say 1, then it wont be possible anymore and the check would than need to be more complex, obviously not impossible to do but as I havent look at that in sometime I wouldnt be able to say how complex a task it would be.