home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
TvPlugin ZapOsd Patch
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jameson_uk" data-source="post: 722595" data-attributes="member: 11220"><p>The IDs are not mutually exclusive and yes this has "developed" this way over time and as with many things it is not ideal.</p><p></p><p>This should not matter though as it is the radio and TV columns which are important.</p><p></p><p>eg. in GetChannels you have</p><p>[code][COLOR=#0000FF][B]if[/B][/COLOR] [COLOR=#006400]([/COLOR]ch[COLOR=#006400].[/COLOR]VisibleInGuide [COLOR=#006400]&&[/COLOR] ch[COLOR=#006400].[/COLOR]IsTv[COLOR=#006400])[/COLOR][/code]</p><p>So even if radio channels did make it here then they would get filtered out (so working by proxy rather than design) but if you go up a little earlier you will see</p><p>[code][COLOR=#0000FF][B]foreach[/B][/COLOR] [COLOR=#006400]([/COLOR]GroupMap chan [COLOR=#0000FF][B]in[/B][/COLOR] TVHome[COLOR=#006400].[/COLOR]Navigator[COLOR=#006400].[/COLOR]CurrentGroup[COLOR=#006400].[/COLOR][COLOR=#191970][B]ReferringGroupMap[/B][/COLOR][COLOR=#006400]())[/COLOR][/code]</p><p>ChannelGroup is mapped to the TV group table so IIRC (I don't have a database to check) this can only ever flag return a list of channel IDs that are TV channels.</p><p></p><p>My hunch is that if you look at channels table you will see that your radio channels do not have the IsRadio column set but in fact have the IsTV column set?</p><p></p><p></p><p>also.... MDAPI is pretty stable but highly dependant on choice of software to go with it. This however is not the place to discuss that.</p></blockquote><p></p>
[QUOTE="jameson_uk, post: 722595, member: 11220"] The IDs are not mutually exclusive and yes this has "developed" this way over time and as with many things it is not ideal. This should not matter though as it is the radio and TV columns which are important. eg. in GetChannels you have [code][COLOR=#0000FF][B]if[/B][/COLOR] [COLOR=#006400]([/COLOR]ch[COLOR=#006400].[/COLOR]VisibleInGuide [COLOR=#006400]&&[/COLOR] ch[COLOR=#006400].[/COLOR]IsTv[COLOR=#006400])[/COLOR][/code] So even if radio channels did make it here then they would get filtered out (so working by proxy rather than design) but if you go up a little earlier you will see [code][COLOR=#0000FF][B]foreach[/B][/COLOR] [COLOR=#006400]([/COLOR]GroupMap chan [COLOR=#0000FF][B]in[/B][/COLOR] TVHome[COLOR=#006400].[/COLOR]Navigator[COLOR=#006400].[/COLOR]CurrentGroup[COLOR=#006400].[/COLOR][COLOR=#191970][B]ReferringGroupMap[/B][/COLOR][COLOR=#006400]())[/COLOR][/code] ChannelGroup is mapped to the TV group table so IIRC (I don't have a database to check) this can only ever flag return a list of channel IDs that are TV channels. My hunch is that if you look at channels table you will see that your radio channels do not have the IsRadio column set but in fact have the IsTV column set? also.... MDAPI is pretty stable but highly dependant on choice of software to go with it. This however is not the place to discuss that. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
TvPlugin ZapOsd Patch
Contact us
RSS
Top
Bottom