fix(availability-sync): fix 4K media availability detection#2298
Merged
fix(availability-sync): fix 4K media availability detection#2298
Conversation
Closed
7 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a bug where 4K content was incorrectly shown as available after deletion when 4K and 1080p versions were stored in the same Plex library. The fix ensures that ratingKey4k is distinct from ratingKey and validates that movies have actual 4K resolution (width >= 2000).
Changes:
- Added validation to ensure
ratingKey4kdiffers fromratingKeyto detect separate library items - Added resolution verification for movies to confirm 4K status by checking media width >= 2000 pixels
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ec14024 to
2dc6a99
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
…shows Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
2dc6a99 to
8374025
Compare
2 tasks
fallenbagel
approved these changes
Jan 23, 2026
gauthier-th
approved these changes
Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes an issue where 4K content was incorrectly shown as available after deletion when 4K and 1080p versions were stored in the same Plex library.
We now verify that:
ratingKey4kpoints to a separate item from ratingKey (ensures they're distinct items)If the
ratingKeyremains the same after deletion, it now checks the actual resolution before marking content as 4K available, preventing false positives when 4K content is deleted but the 1080p version remains.How Has This Been Tested?
See this ticket
Screenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extract