Reply to thread

bionicdonkey


This did not work the way I was thinking it would. I think I know why.


I looked in the database using the SQL Lite Database Browser tool and found that for internal channels, the field <u>iChannelNr</u> contains the "channel number" that I am looking for.


However for external channels (i.e satellite/cable channels via external box) the field <u>iChannelNr</u> always contains "10001", the 'address' of the video/audio inputs on one of the cards. The actual channel in this case is in field <u>ExternalChannel</u>.


There is no single field in the database where the "channel number" in (North American usage) is stored as a numeric value. The closest thing is in <u>strChannel</u> where the first "n" characters are the "channel number" (e.g. "10 WPLG", "67 SCIFI", "300 HBO", etc.)


Unless I missed something, it looks like the current database schema makes this more complex than first suspected. It would be silly to parse the strChannel value for the channel as this is pretty much arbitrary.


One possible change would be to always store the actual "channel number" in the <u>ExternalChannel</u> field regardless of the nature of the channel type (internal vs external.) My "guess" is that this field is used to obtain the value to send out on the IR transmitter to change the satellite/cable box. Always storing the "channel number" in this field would then allow it to be used as both


- an identifier for the channel when using direct channel access, regardless of the channel type;

- a source of the channel value to send to an external satellite/cable box.


Another alternative would be to examine the field <u>bExternal</u> when doing a direct channel access lookup and obtain the "channel number" from the appropriate field depending on the setting of the <u>bExternal</u> value.


------------------------------------

In conjunction with all of this it has occured to me that two other mods would be useful for folks with a large number of channels:


- a 'one-button' selection from the TVGuide would be useful. With the highlight on a channel a single unique button to go to that channel. As it stands now you have to hit "F3" then select from the menu;


- a semi-transparent TVGuide overlay in Fullscreen mode to allow you to bring up the TVGuide and go to a channel directly from there.


Both of these of course should be in the Feature Request category but I thought I'd mention them while they were fresh in my mind.


Top Bottom