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: fix guid lookup for X -> Plex sync #138

Merged
merged 2 commits into from
Jan 12, 2024
Merged

Conversation

remos
Copy link
Contributor

@remos remos commented Jan 12, 2024

This PR aims to resolve #108 by fixing 2 issues within the guid matching for plex:

  1. The guid lookup on plex was checking under the "ids" key on the user_watched dicts, rather than directly on the dict, where the guids seem to be located (alongside location and title). This PR switches it to check directly against the dict itself.
  2. find_video was attempting to iterate over season the key (e.g. 1, 2, etc) rather than the list of episodes. This PR switches to match the logic for location based lookups a few lines above

I've also added additional logging to hopefully help catch any similar issues in the future.

I haven't run this change very long yet, but the changes are minor and I have been able to sync both Jellyfin -> Plex, and Plex -> Jellyfin (where previously Jellyfin -> Plex would fail silently for me similar to what's noted in #108)

Thanks!

@luigi311 luigi311 merged commit 28c1661 into luigi311:dev Jan 12, 2024
5 checks passed
@remos remos deleted the plex-guid-fix branch January 12, 2024 22:05
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 this pull request may close these issues.

None yet

2 participants