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

Plex - [list] Viewed by (username) returning empty list #1242

Open
Bod1985 opened this issue Sep 1, 2024 · 12 comments · Fixed by #1252
Open

Plex - [list] Viewed by (username) returning empty list #1242

Bod1985 opened this issue Sep 1, 2024 · 12 comments · Fixed by #1252

Comments

@Bod1985
Copy link

Bod1985 commented Sep 1, 2024

Describe the bug
Episodes and Movies that have been watched do not reflect that when checking the viewed by list.

To Reproduce
Steps to reproduce the behavior:

  1. Create a rule that uses the viewed by username list
  2. Test a collection by finding known watched media
  3. Observe empty list

Worth noting that "Total Views" accurately reflects the count such as 1 or 2.

Expected behavior
The list should contain a list of users that have viewed the content.

Device (please complete the following information):

  • OS: Debian
  • Version 12
@jorenn92
Copy link
Owner

jorenn92 commented Sep 2, 2024

Are the episodes actually watched? Or just marked as watched? Plex doesn’t generate watch records when you mark an item as watched.

@Bod1985
Copy link
Author

Bod1985 commented Sep 2, 2024

Are the episodes actually watched? Or just marked as watched? Plex doesn’t generate watch records when you mark an item as watched.

I was testing with episodes I'd finished completely. I noticed it was working previously for weeks but now I've got lots of episodes left behind that my rule previously was deleting

@sameep22
Copy link

sameep22 commented Sep 3, 2024

Just to add my two cents, I am also facing a similar issue. I know for a fact that I have seen a season, I can see the entries in Plex history and Tautulli, but on checking the media, Plex doesn't seem to return my username in the list of users that have seen the episodes. Please note, contrary to the OP's problem, I do get some names in the list, but not all.
Could this be related to the latest update?

@rickzim
Copy link

rickzim commented Sep 4, 2024

The same is happening to me. Movies and tv shows that were previously in the collection, are now being removed since my username is no longer in the list.

@appiekap653
Copy link
Contributor

appiekap653 commented Sep 4, 2024

Same here, maintainerr 2.04 did work but since the last update something broke.

Users that saw all available episodes returns empty
Users that watch the show/season/episode returns also empty

Reverting back to 2.0.4 fixes it and adds the shows back to the collection to delete.
Going back to 2.1.0 removes the shows from the collection again.

@jorenn92
Copy link
Owner

jorenn92 commented Sep 6, 2024

Are you testing this with the server owner by any chance? I’ve tracked the issue down to how Plex manages the owner's account ID. For some reason, the owner’s ID is set to '1' instead of their actual Plex ID. In version 2.1.0, I refactored the code to fetch information from Plex's community API to provide more accurate details for users, including the owner’s correct ID. However, this caused issues because the watchlist still uses '1' for the owner. I’ve now refactored the code again to account for this. After #1252 is merged, it should work as expected.

@sameep22
Copy link

sameep22 commented Sep 6, 2024

Yes, in my case, it is the server owner's name that is missing from the list returned by Plex.
I shall just have to wait for this code to get to the stable release. Many thanks @jorenn92

@zenxedo
Copy link

zenxedo commented Sep 10, 2024

I am still having this issue for the main user using 2.1.1

@rickzim
Copy link

rickzim commented Sep 10, 2024

I am still having this issue for the main user using 2.1.1

For me the issue remains on movies as well. But it seems to be fixed for TV Shows.

@jorenn92
Copy link
Owner

jorenn92 commented Sep 10, 2024

@zenxedo @rickzim, my bad—I may have overlooked the 'Viewed by' rule for movies and only applied the fix for shows. This should now be resolved for movies as well after the merge of this PR.

Would you be able to verify this using the main/develop image? (Should be available in about 10 minutes)

@rickzim
Copy link

rickzim commented Sep 10, 2024

@jorenn92 Np! Thank you for being on it so quickly. Im currently unable to test it but i'll ask a friend!

@zenxedo
Copy link

zenxedo commented Sep 10, 2024

Thank you for the fast fix and a great app. Tested in develop and it's working now

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

Successfully merging a pull request may close this issue.

6 participants