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
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Store language(s) from MediaInfo
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="ltfearme" data-source="post: 1130567" data-attributes="member: 52219"><p>IT definitely picks up artwork from different languages, at least it did when originally implemented. Check out GetBanner.cs and see if it correctly compares again your chosen language.</p><p></p><p>[code]</p><p> public int CompareTo(T other)</p><p> {</p><p> // Sort by:</p><p> // 1. Local Language</p><p> // 2. Highest Rated</p><p> // 3. Number of Votes</p><p></p><p> double thisArtwork = this.Language == OnlineAPI.SelLanguageAsString ? 100.0 : 0.0;</p><p> double otherArtwork = other.Language == OnlineAPI.SelLanguageAsString ? 100.0 : 0.0;</p><p></p><p> if (this.Rating == other.Rating)</p><p> {</p><p> thisArtwork += this.RatingCount;</p><p> otherArtwork += other.RatingCount;</p><p> }</p><p></p><p> thisArtwork += this.Rating;</p><p> otherArtwork += other.Rating;</p><p></p><p> return otherArtwork.CompareTo(thisArtwork);</p><p> } </p><p></p><p>[/code]</p><p></p><p>There is a actually a bug in that code, but it would be a slim chance of hitting it. It basically gives more weight to artwork of your preferred language and its rating, it does the job but could be improved.</p><p></p><p>The key point for you to check is if OnlineAPI.SelLanguageAsString is correct and all the language property of the poster is correct, that is assigned here:</p><p>[code]</p><p>seriesPoster.Language = banner.SelectSingleNode("Language").InnerText;</p><p>[/code]</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1130567, member: 52219"] IT definitely picks up artwork from different languages, at least it did when originally implemented. Check out GetBanner.cs and see if it correctly compares again your chosen language. [code] public int CompareTo(T other) { // Sort by: // 1. Local Language // 2. Highest Rated // 3. Number of Votes double thisArtwork = this.Language == OnlineAPI.SelLanguageAsString ? 100.0 : 0.0; double otherArtwork = other.Language == OnlineAPI.SelLanguageAsString ? 100.0 : 0.0; if (this.Rating == other.Rating) { thisArtwork += this.RatingCount; otherArtwork += other.RatingCount; } thisArtwork += this.Rating; otherArtwork += other.Rating; return otherArtwork.CompareTo(thisArtwork); } [/code] There is a actually a bug in that code, but it would be a slim chance of hitting it. It basically gives more weight to artwork of your preferred language and its rating, it does the job but could be improved. The key point for you to check is if OnlineAPI.SelLanguageAsString is correct and all the language property of the poster is correct, that is assigned here: [code] seriesPoster.Language = banner.SelectSingleNode("Language").InnerText; [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Store language(s) from MediaInfo
Contact us
RSS
Top
Bottom