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: 1125770" data-attributes="member: 52219"><p>There is still more to be done if you want to always count special episodes as watched.</p><p></p><p>The DBEpisode.GetSeriesEpisodeCounts() does not get called during an import. I suggest you put a break point here in OnlineParse.cs:</p><p>[code]</p><p> void asyncEpisodeCounts(object sender, DoWorkEventArgs e)</p><p> {</p><p> Thread.CurrentThread.Priority = ThreadPriority.Lowest;</p><p> List<DBSeries> allSeries = (List<DBSeries>)e.Argument;</p><p> BackgroundWorker worker = sender as BackgroundWorker;</p><p> int nIndex = 1;</p><p> var episodesForCount = DBSeries.GetEpisodesForCount();</p><p> foreach (DBSeries series in allSeries)</p><p> {</p><p> worker.ReportProgress(0, new object[] { series, nIndex++ });</p><p> DBSeries.UpdateEpisodeCounts(series, episodesForCount);</p><p> }</p><p> e.Result = allSeries.Count;</p><p> }</p><p>[/code]</p><p></p><p>fyi, a couple years ago I think I made some changes to episode counting as it was too slow.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1125770, member: 52219"] There is still more to be done if you want to always count special episodes as watched. The DBEpisode.GetSeriesEpisodeCounts() does not get called during an import. I suggest you put a break point here in OnlineParse.cs: [code] void asyncEpisodeCounts(object sender, DoWorkEventArgs e) { Thread.CurrentThread.Priority = ThreadPriority.Lowest; List<DBSeries> allSeries = (List<DBSeries>)e.Argument; BackgroundWorker worker = sender as BackgroundWorker; int nIndex = 1; var episodesForCount = DBSeries.GetEpisodesForCount(); foreach (DBSeries series in allSeries) { worker.ReportProgress(0, new object[] { series, nIndex++ }); DBSeries.UpdateEpisodeCounts(series, episodesForCount); } e.Result = allSeries.Count; } [/code] fyi, a couple years ago I think I made some changes to episode counting as it was too slow. [/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