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: 1130629" data-attributes="member: 52219"><p>I had a look at the code and can see the logic issue, you were never incrementing the series unwatched count unless the option was enabled</p><p>[code]</p><p>if ( (season[DBSeason.cIndex] != 0) && (DBOption.GetOptions(DBOption.cCountSpecialEpisodesAsWatched)) )</p><p>{</p><p> seriesEpsUnWatched += unWatchedCount;</p><p>}</p><p>[/code]</p><p>In that case if cCountSpecialEpisodesAsWatched was disabled then unwatched at the series level will always 0.</p><p></p><p>I think what you intend is something like:</p><p>[code]</p><p>if ( (season[DBSeason.cIndex] != 0) || (season[DBSeason.cIndex] == 0 && !DBOption.GetOptions(DBOption.cCountSpecialEpisodesAsWatched)))</p><p>{</p><p> seriesEpsUnWatched += unWatchedCount;</p><p>}</p><p>[/code]</p><p></p><p>Here is will always increment if not a special, and if it is a special then only increment unwatched if the option is disabled.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1130629, member: 52219"] I had a look at the code and can see the logic issue, you were never incrementing the series unwatched count unless the option was enabled [code] if ( (season[DBSeason.cIndex] != 0) && (DBOption.GetOptions(DBOption.cCountSpecialEpisodesAsWatched)) ) { seriesEpsUnWatched += unWatchedCount; } [/code] In that case if cCountSpecialEpisodesAsWatched was disabled then unwatched at the series level will always 0. I think what you intend is something like: [code] if ( (season[DBSeason.cIndex] != 0) || (season[DBSeason.cIndex] == 0 && !DBOption.GetOptions(DBOption.cCountSpecialEpisodesAsWatched))) { seriesEpsUnWatched += unWatchedCount; } [/code] Here is will always increment if not a special, and if it is a special then only increment unwatched if the option is disabled. [/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