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
Moving Pictures
Moving pictures doesn't remember position.
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: 1142021" data-attributes="member: 52219"><p>Started Playback</p><p>[code]</p><p>[2015-07-03 19:37:32,094] [Log ] [MPMain ] [INFO ] - g_Player.OnStarted() D:\Film\Faster (2010) [1080p]\Faster.2010.1080p.BrRip.x264.YIFY.mp4 media:Video</p><p>[/code]</p><p></p><p>Send To Trakt (Start Watching):</p><p>[code]</p><p>2015-07-03 19:37:32.685 [INFO] [Scrobble][46]: Sending start scrobble of movie to trakt.tv. Title = 'Faster', Year = '2010', IMDb ID = 'tt1433108', TMDb ID = '41283'</p><p>2015-07-03 19:37:33.225 [INFO] [Scrobble][46]: Scrobble Response: {"action":"start","episode":null,"movie":{"ids":{"slug":"faster-2010","trakt":27285,"imdb":"tt1433108","tmdb":41283},"title":"Faster","year":2010},"progress":0,"sharing":{"facebook":false,"tumblr":false,"twitter":false},"show":null}</p><p>[/code]</p><p></p><p>Ended Playback</p><p>[code]</p><p>[2015-07-03 20:10:43,410] [Log ] [MPMain ] [INFO ] - VideoPlayer:ended D:\Film\Faster (2010) [1080p]\Faster.2010.1080p.BrRip.x264.YIFY.mp4</p><p>[/code]</p><p></p><p>Send To Trakt (Paused Watching):</p><p>[code]</p><p>2015-07-03 20:10:43.411 [INFO] [Scrobble][24]: Sending 'pause' scrobble of movie to trakt.tv. Progress = '0%', Title = 'Faster', Year = '2010', IMDb ID = 'tt1433108', TMDb ID = '41283'</p><p>2015-07-03 20:10:44.063 [INFO] [Scrobble][24]: Scrobble Response: {"action":"pause","episode":null,"movie":{"ids":{"slug":"faster-2010","trakt":27285,"imdb":"tt1433108","tmdb":41283},"title":"Faster","year":2010},"progress":0,"sharing":{"facebook":false,"tumblr":false,"twitter":false},"show":null}</p><p>[/code]</p><p></p><p>It looks like it sent the pause with 0% progress watched, so when you restarted mediaportal, the trakt paused sync reset your resume time to 0%.</p><p></p><p>The big question is why the trakt plugin didn't know how much you actually watched. This could of happen for a number of reasons.</p><p></p><p>We first get the players current position:</p><p>[code]</p><p>// MovingPictures stores duration in milliseconds, g_Player reports in seconds</p><p>double currentPosition = g_Player.CurrentPosition;</p><p>[/code]</p><p></p><p>Then we get the total duration of the video:</p><p>[code]</p><p>double duration = GetMovieDuration(movie, IsDVDPlaying);</p><p></p><p>private double GetMovieDuration(DBMovieInfo movie, bool isDVD)</p><p>{</p><p> double duration = 0.0;</p><p></p><p> // first try to get from MediaInfo</p><p> if (movie.ActualRuntime != 0)</p><p> {</p><p> // MovingPictures stores duration in milliseconds</p><p> duration = movie.ActualRuntime / 1000.0;</p><p> }</p><p> else if (g_Player.Duration != 0.0)</p><p> {</p><p> // g_Player reports in seconds</p><p> duration = g_Player.Duration;</p><p> }</p><p> else</p><p> {</p><p> // MovingPictures stores scraped runtime in minutes</p><p> duration = movie.Runtime * 60.0;</p><p> }</p><p> </p><p> // MediaInfo runtime from MovingPictures is wrong</p><p> // it sums up all videos on the DVD structure!</p><p> // check if more than 4hrs will suffice</p><p> if (isDVD && duration > (4 * 60 * 60)) duration = movie.Runtime * 60.0;</p><p></p><p> // sometimes we could be finishing a DVD in an featurette</p><p> // come up with an arbitrary runtime to avoid scrobbling as a trailer,</p><p> // and be rejected, only do this on DVDs</p><p> if (isDVD && duration < 900.0) duration = 120 * 60;</p><p></p><p> return duration;</p><p>}</p><p>[/code]</p><p></p><p>Finially the progress is calculated:</p><p>[code]</p><p>// g_Player reports in seconds</p><p>double progress = duration != 0.0 ? (currentPosition / duration * 100.0) : 0.0;</p><p>[/code]</p><p></p><p>I suspect that either the duration of the video as reported in movingpics = 0 or MediaPortal is giving me a current position of 0.</p><p></p><p>Can you check your MovingPictures configuration for that movie and see what the Runtime is set to? Check the Movie Details 'Runtime' and the File Details 'Duration'.</p><p></p><p>You might need to update MediaInfo for that file or re-scrape the movie. Maybe you have disabled MediaInfo scan?</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1142021, member: 52219"] Started Playback [code] [2015-07-03 19:37:32,094] [Log ] [MPMain ] [INFO ] - g_Player.OnStarted() D:\Film\Faster (2010) [1080p]\Faster.2010.1080p.BrRip.x264.YIFY.mp4 media:Video [/code] Send To Trakt (Start Watching): [code] 2015-07-03 19:37:32.685 [INFO] [Scrobble][46]: Sending start scrobble of movie to trakt.tv. Title = 'Faster', Year = '2010', IMDb ID = 'tt1433108', TMDb ID = '41283' 2015-07-03 19:37:33.225 [INFO] [Scrobble][46]: Scrobble Response: {"action":"start","episode":null,"movie":{"ids":{"slug":"faster-2010","trakt":27285,"imdb":"tt1433108","tmdb":41283},"title":"Faster","year":2010},"progress":0,"sharing":{"facebook":false,"tumblr":false,"twitter":false},"show":null} [/code] Ended Playback [code] [2015-07-03 20:10:43,410] [Log ] [MPMain ] [INFO ] - VideoPlayer:ended D:\Film\Faster (2010) [1080p]\Faster.2010.1080p.BrRip.x264.YIFY.mp4 [/code] Send To Trakt (Paused Watching): [code] 2015-07-03 20:10:43.411 [INFO] [Scrobble][24]: Sending 'pause' scrobble of movie to trakt.tv. Progress = '0%', Title = 'Faster', Year = '2010', IMDb ID = 'tt1433108', TMDb ID = '41283' 2015-07-03 20:10:44.063 [INFO] [Scrobble][24]: Scrobble Response: {"action":"pause","episode":null,"movie":{"ids":{"slug":"faster-2010","trakt":27285,"imdb":"tt1433108","tmdb":41283},"title":"Faster","year":2010},"progress":0,"sharing":{"facebook":false,"tumblr":false,"twitter":false},"show":null} [/code] It looks like it sent the pause with 0% progress watched, so when you restarted mediaportal, the trakt paused sync reset your resume time to 0%. The big question is why the trakt plugin didn't know how much you actually watched. This could of happen for a number of reasons. We first get the players current position: [code] // MovingPictures stores duration in milliseconds, g_Player reports in seconds double currentPosition = g_Player.CurrentPosition; [/code] Then we get the total duration of the video: [code] double duration = GetMovieDuration(movie, IsDVDPlaying); private double GetMovieDuration(DBMovieInfo movie, bool isDVD) { double duration = 0.0; // first try to get from MediaInfo if (movie.ActualRuntime != 0) { // MovingPictures stores duration in milliseconds duration = movie.ActualRuntime / 1000.0; } else if (g_Player.Duration != 0.0) { // g_Player reports in seconds duration = g_Player.Duration; } else { // MovingPictures stores scraped runtime in minutes duration = movie.Runtime * 60.0; } // MediaInfo runtime from MovingPictures is wrong // it sums up all videos on the DVD structure! // check if more than 4hrs will suffice if (isDVD && duration > (4 * 60 * 60)) duration = movie.Runtime * 60.0; // sometimes we could be finishing a DVD in an featurette // come up with an arbitrary runtime to avoid scrobbling as a trailer, // and be rejected, only do this on DVDs if (isDVD && duration < 900.0) duration = 120 * 60; return duration; } [/code] Finially the progress is calculated: [code] // g_Player reports in seconds double progress = duration != 0.0 ? (currentPosition / duration * 100.0) : 0.0; [/code] I suspect that either the duration of the video as reported in movingpics = 0 or MediaPortal is giving me a current position of 0. Can you check your MovingPictures configuration for that movie and see what the Runtime is set to? Check the Movie Details 'Runtime' and the File Details 'Duration'. You might need to update MediaInfo for that file or re-scrape the movie. Maybe you have disabled MediaInfo scan? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Moving pictures doesn't remember position.
Contact us
RSS
Top
Bottom