Every play leaves 2 plays in the Plex dashboard history
I usually use Tautulli for history, and it groups the plays, so I didn't notice until recently when I opened the Plex dashboard and the play statistics were roughly double of what they should be. Other devices like iOS players leave only 1 play if I watch in one sitting, so this must be plex-mpv-shim specific. I noticed that those double plays timestamps are usually around episode duration * 5% apart. So my best guess is: Plex marks it as watched in its history at the 95% mark (as with every other Plex player), but at 100% playback ends and the script sends some event to Plex that logs as a separate play in the history.
The most likely solution would be to try and prevent the second (100%) event from happening if possible, although I would love an option to somehow block Plex marking at 95%, and instead mark only at 100% cause I always watch until the credits are gone, and I think that the effort of skipping to the end is better than the chance of losing the episode from the deck when there are no credits and you couldn't finish it in one sitting and were on the last 5% of a movie and you have to search for it again. I wish Plex would allow us to set this threshold.
This is a known issue. It is caused by https://github.com/iwalton3/plex-mpv-shim/blob/master/plex_mpv_shim/player.py#L415
There is no way that I know to stop Plex marking media as played at 95 percent without completely disabling notifications of playback progress to the server which has many other side effects.
There is no way that I know to stop Plex marking media as played at 95 percent without completely disabling notifications of playback progress to the server which has many other side effects.
Thanks for the explanation. Yeah, I expected that case wouldn't be possible. But could you then prevent the self._video.set_played() at the finished callback instead? Would that break something and why? Can it at least be optional?
I suppose a setting could be added. It'll probably be a while until there is a release though.