I'm using MySQL. What is the MediaPortal database name?
use <database_name>;
show tables;
...
Ok, I figured it out. Using MySQL client:
use TVLibrary;
UPDATE TuningDetail SET channelNumber = serviceId;
This does the trick, but my channels are still not sorted by SID in MediaPortal. Still sorted by name which sucks. I may end up exporting to XML, writing some Perl to change the sorting and importing back the XML.
use <database_name>;
show tables;
...
Ok, I figured it out. Using MySQL client:
use TVLibrary;
UPDATE TuningDetail SET channelNumber = serviceId;
This does the trick, but my channels are still not sorted by SID in MediaPortal. Still sorted by name which sucks. I may end up exporting to XML, writing some Perl to change the sorting and importing back the XML.