Restore missing Radarr hardlinks safely - #47
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 06e0b51e62
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if not library_files: | ||
| direct_videos = [ | ||
| (path, size) | ||
| for path, size in torrent_files | ||
| if path.suffix.casefold() in VIDEO_EXTENSIONS |
There was a problem hiding this comment.
Reject non-feature videos before restoring media
When a partially selected torrent has only a trailer or Sample.mkv selected, this count treats that file as the unique movie even though the Radarr history proves only the torrent-to-movie association, not the role of an individual file. The later title check also considers the torrent name, so such a plan can become ready and rescan the sample as the managed movie; reject sample/trailer/extras paths or require stronger feature-file evidence before creating the restore pair.
Useful? React with 👍 / 👎.
| if row["status"] in { | ||
| "root-mismatch", "missing-library-file", "hardlink-missing", | ||
| }: | ||
| reconcile_issues.append(row) |
There was a problem hiding this comment.
Expose the newly promoted repair statuses in the UI
When an audit contains only missing-library-file or hardlink-missing, these rows are now promoted to safe Reconcile candidates here, but renderSync() still renders the “Plan safe fixes” button only for category repairs or root-mismatch (app.js:941). Consequently the batch safe-plan workflow cannot be launched for the two new repair types unless an unrelated eligible issue is also present, and the rows are misleadingly labeled as manual fixes.
Useful? React with 👍 / 👎.
No description provided.