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
General Development (no feature request here!)
Small contribution to fix tuningdetails view.
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="te3hpurp" data-source="post: 409001" data-attributes="member: 82806"><p>Hi all.</p><p></p><p>Current implementation of showing tuning details probably works most users</p><p>if they have combined channels from same network. Well i have combined channels from</p><p>dvb-t & dvb-s, Like Yle1 in finland. It is aired in dvb-t and in dvb-s(from canal digital).</p><p></p><p>If try to view tuningdetails, returned information is always from dvb-s, this happens in</p><p>TvPlugin in file TVTuningDetails.cs. Detail info is always returned from the position 0 in tunidetails array.</p><p></p><p>Instead of returning details like this:</p><p></p><p>[CODE]TuningDetail detail = details[0]; [/CODE]</p><p></p><p>like original code does, it should compare channelltype and</p><p>currently used cardtype to find out which info to use, like this:</p><p></p><p> [CODE] </p><p> IList<TuningDetail> details = chan.ReferringTuningDetail();</p><p> if (details.Count > 0)</p><p> TuningDetail detail=null;</p><p> foreach (TuningDetail detaile in details)</p><p> { </p><p> switch (detaile.ChannelType)</p><p> {</p><p> case 0: //AnalogChannel</p><p> if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.Analog)</p><p> detail = detaile;</p><p> break;</p><p> case 1: //ATSCChannel</p><p> if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.Atsc)</p><p> detail = detaile;</p><p> break;</p><p> case 2: //DVBCChannel</p><p> if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.DvbC)</p><p> detail = detaile;</p><p> break;</p><p> case 3: //DVBSChannel</p><p> if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.DvbS)</p><p> detail = detaile;</p><p> break;</p><p> case 4: //DVBTChannel</p><p> if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.DvbT)</p><p> detail = detaile;</p><p> break;</p><p> }</p><p> }</p><p>[/CODE]</p><p></p><p>Included patch should not break operation when combined channels are from same provider and network.</p><p></p><p>regards,</p></blockquote><p></p>
[QUOTE="te3hpurp, post: 409001, member: 82806"] Hi all. Current implementation of showing tuning details probably works most users if they have combined channels from same network. Well i have combined channels from dvb-t & dvb-s, Like Yle1 in finland. It is aired in dvb-t and in dvb-s(from canal digital). If try to view tuningdetails, returned information is always from dvb-s, this happens in TvPlugin in file TVTuningDetails.cs. Detail info is always returned from the position 0 in tunidetails array. Instead of returning details like this: [CODE]TuningDetail detail = details[0]; [/CODE] like original code does, it should compare channelltype and currently used cardtype to find out which info to use, like this: [CODE] IList<TuningDetail> details = chan.ReferringTuningDetail(); if (details.Count > 0) TuningDetail detail=null; foreach (TuningDetail detaile in details) { switch (detaile.ChannelType) { case 0: //AnalogChannel if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.Analog) detail = detaile; break; case 1: //ATSCChannel if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.Atsc) detail = detaile; break; case 2: //DVBCChannel if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.DvbC) detail = detaile; break; case 3: //DVBSChannel if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.DvbS) detail = detaile; break; case 4: //DVBTChannel if (TVHome.Card.Type == TvLibrary.Interfaces.CardType.DvbT) detail = detaile; break; } } [/CODE] Included patch should not break operation when combined channels are from same provider and network. regards, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Small contribution to fix tuningdetails view.
Contact us
RSS
Top
Bottom