luigi311 / JellyPlex-Watched

Sync watched between jellyfin and plex locally
GNU General Public License v3.0
392 stars 19 forks source link

Sync progress to Jellyfin? #81

Closed jianglai closed 1 year ago

jianglai commented 1 year ago

First of all, thank you for this project. It is exactly what I have been looking for.

I'm curious on how watch progress sync works with Jellyfin. I know in the README file the "Sync inprogross" checkbox is unchecked for Jellyfin. I did some experiments and what I observed is that Jellyfin watch progress (e.g. minutes watched) syncs to Plex, but not vice versa. Is that working as intended? If so, are there plans to allow two-way progress sync works between Jellyfin and Plex?

Also, as far as the watched/unwatched status goes, it looks like the app itself does not keep track of the latest status, but rather only syncs whichever is the furthest to other servers. So for example if I had finished watching a movie on Plex, it will sync to Jellyfin and both will be marked as watched. But if I mark the same movie as unwatched again on Plex, the next the app runs, it does not know that the "unwatched" status is the latest, but rather thinks the "watched" status on Jellyfin is the furthest, so it syncs the status on Plex back to "watched". Is that correct?

JChris246 commented 1 year ago

In regards to syncing plex watch progress to jellyfin, implementing this functionality was not as straight forward as syncing from jellyfin to plex. Basically as was described in this issue's thread, updating watch progress on jellyfin's side requires a user token and there doesn't seem to be a clear cut way to grab a users token, particularly via an api key.

As a result the partial syncing was released so at least the plex syncing would be available while jellyfin sync was put on hold until a solution could be found, whether that be from a response on the issue ticket on jellyfin's repo or implementing a plugin for Jellyfin that will allow it.

With respect to updating the "watched" and "unwatched" status, it's simply the design of the script which makes its such that it prefers marking as "watched". You can find more details on this in this issue's thread

jianglai commented 1 year ago

Thank you for the quick response!

luigi311 commented 1 year ago

Since this has been answered and is a duplicate of #47 #55 I'm going to go ahead and close this one