dushmaniac Wrote:@dteirney
There are two different types of channel numbers:
- backend channel numbers: only used to do some initial sorting of channel lists by xbmc. doesn't have to be unique. maybe it's used in an add-on's code, but it shouldn't.
- xbmc channel number: the position in the channel group.
So, just translate the 8.1, 8.2, etc. to channel number 8 and use the channel's unique id to identify it. XBMC will use unique channel numbers, so they'll become channel 8, 9, etc.
I'm currently working on that code in a local branch btw. The "xbmc channel number" will be moved to cpvrchannelgroup and channels can be part of multiple groups after I'm done. The "backend channel number" will only be used to sort the "all channels group", when the group is empty and new channels are added.
There are 2 numbers that MythTV understands regarding channels.
Channel ID - the unique ID for the channel in the backend. This is used for all of the API calls. E.g. 1001, 1002, 1003, 1244
Channel Number - the human friendly number that is shown to users and used for sorting, changing channel via the remote number keypad etc. E.g. 1, 2, 3, 244 (and apparently 8.1, 8.2, 8.3)
The US seems to support a channel number that encodes some sort of grouping. E.g. 8.1, 8.2, 8.3 seems to imply that they belong to channel group 8 and have sub identifiers 1, 2, 3.
If the Channel Group can be specified for each channel across the PVR interface I could look at parsing out "8.1" into channel group "8" with number "1". I did find some channel group configuration stuff in the XBMC frontend the other day so this might be changeable within XBMC?
Will wait to see what the XML shows from fiveisalive but I'm pretty sure each channel with have it's own unique channel id, e.g. 1001, 1002, 1003, 1244. Without that there is no way MythTV can be functioning properly.