Skip to content

fix(plex): process both versions of a multi-version movie - #3603

Open
fallenbagel wants to merge 1 commit into
developfrom
fix/plex-multi-version-movies
Open

fallenbagel wants to merge 1 commit into
developfrom
fix/plex-multi-version-movies

Conversation

@fallenbagel

@fallenbagel fallenbagel commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Description

The Plex movie scanner called processMovie once per item and flagged it as 4K if any version was 4K. A movie with both 1080p and 4K versions in the same Plex item only got status4k set, so the standard request stayed in Requested until the next Radarr scan. It now processes each version present, the same way the Jellyfin movie scanner does. The Hama specials path goes through the same method and gets the fix as well.

How Has This Been Tested?

Added Plex scanner tests for a single item holding both 1080p and 4K versions (standard and 4K both end up available) and for a 4K-only item with no 4K Radarr configured (treated as standard).

Screenshots / Logs (if applicable)

Checklist:

  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI (see our policy)
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

Summary by CodeRabbit

  • Improvements
    • Plex movie availability is tracked separately for standard and 4K versions. Movies with both resolutions can appear as available in both categories.
    • 4K availability status reflects your 4K Radarr configuration. For 4K-only movies without Radarr configured, standard availability is shown while 4K status remains unknown.

@fallenbagel
fallenbagel requested a review from a team as a code owner October 9, 2026 23:16
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ebe516a4-5518-4f68-82d7-7ce7c8ea4ad5

📥 Commits

Reviewing files that changed from the base of the PR and between 4a9e5c5 and 9c25d19.


📒 Files selected for processing (1)
  • server/lib/scanners/plex/plex.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.



📝 Walkthrough

Walkthrough

The Plex movie scanner now processes standard and 4K versions separately when applicable. Tests check movie statuses for items with both resolutions and for 4K-only items when Radarr is not configured.

Changes

Plex movie version status

Layer / File(s) Summary
Detect and process movie versions
server/lib/scanners/plex/index.ts, server/lib/scanners/plex/plex.test.ts
The scanner checks for standard and 4K media and calls movie processing separately for applicable versions. Tests check statuses for movies with both resolutions and for 4K-only movies when Radarr is not configured.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: gauthier-th, sct


Merge Risk: ⚪ Minimal · up to 9c25d

The change makes the Plex scanner mark both standard and 4K movie versions available and adds tests for it. No merge-blocking risk was identified in the supplied material.

Pre-merge checks | Passed 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the main change: the Plex scanner processes both versions of a multi-version movie.
Linked Issues check Passed #3601 requires the Plex movie scanner to recognize standard and 4K versions on one item. processPlexMovieByTmdbId now detects standard media and enabled 4K media separately, then calls `processMovie…
Out of Scope Changes check Passed The scanner change and tests support #3601. The shared method also serves the Hama specials path, as the PR description states, but the same version-processing behavior applies there. No unrelated cha…


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the Plex parade
Two movie versions hop along
One in standard, one in 4K
Tests watch statuses as they change
Then nibble carrots by the screen

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the merge conflict Cannot merge due to merge conflicts label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

The Plex movie scanner only processed one version per item, so a movie with both 1080p and 4k files
in the same Plex item only ever had its 4K status set. It now processes each version present,
matching the Jellyfin movie scanner.

fix #3601
@fallenbagel
fallenbagel force-pushed the fix/plex-multi-version-movies branch from 4a9e5c5 to 9c25d19 Compare October 9, 2026 23:28
@github-actions github-actions Bot removed the merge conflict Cannot merge due to merge conflicts label Oct 9, 2026
@fallenbagel fallenbagel added this to the v3.5.1 milestone Oct 10, 2026
@seerr-automation-bot seerr-automation-bot modified the milestones: v3.5.1, v3.5.2 Oct 21, 2026
@fallenbagel fallenbagel modified the milestones: v3.5.2, v3.5.3 Nov 1, 2026
@github-actions github-actions Bot added the merge conflict Cannot merge due to merge conflicts label Nov 26, 2026
@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge conflict Cannot merge due to merge conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plex movie scanner misses standard version for multi-version movies with 4K and 1080p

3 participants