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
Trakt
[6.0.3] Trakt for MediaPortal [2020-01-01]
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="Sebastiii" data-source="post: 1240735" data-attributes="member: 60104"><p>So what i have add in Trakt : (line 17 to 20) and in MP code, we have changed GUIGraphicsContext.Vmr9Active to be set to false when all filter are properly released)</p><p>If you have a better idea <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /></p><p></p><p>[code=csharp]private void OnEpisodeWatched(DBEpisode episode, bool isPlaylist)</p><p> {</p><p> if (TraktSettings.AccountStatus != ConnectionState.Connected) return;</p><p></p><p> EpisodeWatching = false;</p><p></p><p> TraktLogger.Info("Playback of MP-TVSeries episode stopped and considered watched. Title = '{0}', PlayList Item = '{1}'", episode.ToString(), isPlaylist);</p><p> double progress = GetPlayerProgress(episode);</p><p></p><p> // purely defensive check against bad progress reading</p><p> // for an episode that counts as watched.</p><p> if (progress < 80) progress = 100;</p><p></p><p> var stopWatching = new Thread((objEpisode) =></p><p> {</p><p> // Wait playback is fully stopped to avoid loop on stop</p><p> while (g_Player.FullScreen || GUIGraphicsContext.Vmr9Active)</p><p> {</p><p> Thread.Sleep(10);</p><p> }</p><p></p><p> var stoppedEpisode = objEpisode as DBEpisode;</p><p> if (stoppedEpisode == null) return;</p><p></p><p> TraktScrobbleResponse response = null;</p><p> TraktScrobbleEpisode scrobbleData = null;[/code]</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1240735, member: 60104"] So what i have add in Trakt : (line 17 to 20) and in MP code, we have changed GUIGraphicsContext.Vmr9Active to be set to false when all filter are properly released) If you have a better idea :P [code=csharp]private void OnEpisodeWatched(DBEpisode episode, bool isPlaylist) { if (TraktSettings.AccountStatus != ConnectionState.Connected) return; EpisodeWatching = false; TraktLogger.Info("Playback of MP-TVSeries episode stopped and considered watched. Title = '{0}', PlayList Item = '{1}'", episode.ToString(), isPlaylist); double progress = GetPlayerProgress(episode); // purely defensive check against bad progress reading // for an episode that counts as watched. if (progress < 80) progress = 100; var stopWatching = new Thread((objEpisode) => { // Wait playback is fully stopped to avoid loop on stop while (g_Player.FullScreen || GUIGraphicsContext.Vmr9Active) { Thread.Sleep(10); } var stoppedEpisode = objEpisode as DBEpisode; if (stoppedEpisode == null) return; TraktScrobbleResponse response = null; TraktScrobbleEpisode scrobbleData = null;[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
[6.0.3] Trakt for MediaPortal [2020-01-01]
Contact us
RSS
Top
Bottom