Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync_watch_status doesn't sync everything #368

Closed
d3mystified opened this issue Jan 6, 2023 · 3 comments
Closed

sync_watch_status doesn't sync everything #368

d3mystified opened this issue Jan 6, 2023 · 3 comments

Comments

@d3mystified
Copy link

I'm trying to sync from user1 (managed account) to user2 (normal plex user) who are both added to server:

python3 sync_watch_status.py --userFrom user1=server --userTo user2=server --libraries Movies "TV Shows"
Connecting to admin server(s) for access info...
Checking user1's access to server
Connecting user1 to server...
Finding watched items in libraries...
Connecting user2 to server...
Checking user1's library: 'Movies' watch statuses...
Marking watched...
/home/srvr/srvr/tautulli/scripts/sync_watch_status.py:399: DeprecationWarning: Call to deprecated function or method "isWatched", use "isPlayed" instead.
  if not fetch_check.isWatched:
Checking user1's library: 'TV Shows' watch statuses...
Marking watched...

Even though the script says everything is watched, it doesn't actually work. I think it's only marked a few movies and last few episodes watched.

Is this a Plex limitation or a script limitation?

@d3mystified
Copy link
Author

I had to change the search logic to the following:

watched_lst = sectionFrom.search(libtype='episode', filters={"episode.unwatched": False}, maxresults=1000, container_size=1000)

Then it worked.

@Xuth1
Copy link

Xuth1 commented Jan 8, 2023

This also solved the same issue for me, although I had to change maxresults=1000 to maxresults=-1 to ensure it ran the full library without a premature stop.

@blacktwin
Copy link
Owner

Even though the script says everything is watched, it doesn't actually work

It's not saying that. You would see each item that was marked as watched in the console or logs. You should not be making that large of a request. Instead it should be repeated requests until the entire library is grabbed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants