Taxel / PlexTraktSync

A python script that syncs the movies, shows and ratings between trakt and Plex (without needing a PlexPass or Trakt VIP subscription)
MIT License
1.55k stars 101 forks source link

Feature request: Sync watched time #1907

Open ztevo opened 4 months ago

ztevo commented 4 months ago

Feature description

Change behaviour such that a "Watched status" sync from Plex To Trakt, would copy the time a movie/episode had finished being watched into Trakt.

For example - if you finished watching an episode at 6pm and the sync was complete at 6.30pm, "Watched Status" sync would copy across the 6pm time into Trakt history (not 6.30pm sync time as it would do today).

If there are situations where a previously unwatched item has been watched multiple times before a scheduled sync - then it should take the finish time of the first watch (rather than the most recent).

Related: #1886 Possibly related: #1626

Use case

I use Trakt to keep a record of when I watched all shows and movies for the very first time only (so purposefully do not capture rewatches).

The current behaviour of PTS is such that syncing Watched Status from Plex to Trakt, would not give an accurate watch history i.e. not chronological order.

This feature would help ensure my watched history in Trakt is as close to accurate as possible.

Workarounds

Using Sync command - potentially could schedule a sync every minute (although not sensible).

Using watch command - scrobbling would capture correct time (with some caveats), but would also include rewatches.

Plan to implement

Support would be required (sorry - not a developer!).

Thank you!

glensc commented 4 months ago

add your config to the feature request (relevant parts only), and be certain that it's clear what you when you mean plextraktsync watch and when you mean plextraktsync sync. and so that whatever you mean by caveats is described. i also don't understand why you say accurate history. explain, show details.

plextraktsync sync always takes time from plex of when watch was completed, see the timestamp with inspect command (under Plex play history)

glensc commented 4 months ago

for understanding how things work, you can also remove watch from trakt and then run sync again (use with --id parameter to sync only one item), it would copy the watch time stored in plex.