Repository navigation
feat(markers): re-detect intro, credits, or all markers for an item - #1591
Conversation
Admins can now rerun local marker detection for one kind at a time through
POST /api/v2/admin/items/{id}/redetect-markers, which takes an optional kind
of intro, credits, or all. Episodes run the chosen kinds; movies accept
credits or all and reject intro with a validation error. The marker
capability document gains redetect_markers so clients can detect the
operation. The web item page offers a Re-detect Markers dialog for episodes
and a Re-detect Credits action for movies.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedNext included review available in 12 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (45)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc7efb1a52
ℹ️ 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".
During a rolling deploy or rollback the web bundle can be newer than the API node that answers. Read GET /api/v2/admin/markers/capabilities and offer the redetect-markers picker and movie Re-detect Credits only when redetect_markers is true. Otherwise episodes keep the intro-only redetect-intro action and movies show no re-detect action. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Suggested fix: replace the line with Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 55263982b9
ℹ️ 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".
|
Updated the |
…orts movie credits Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… redetect-markers Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
The episode-only redetect-intro operation cannot re-detect credits, so an "all" request that reached a node without redetect-markers reported success after re-running intros alone. Only intro requests fall back now; other kinds show the error. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: #1147
Validation tasks: none
Admins can rerun local detection for an episode's intro, or refresh all of an item's markers, but they cannot rerun credits detection on its own, and they have no way to rerun detection for a movie's credits. After fixing a file or disagreeing with a detected credits range, the only option is a full refresh, which also contacts online providers. This change adds an admin operation that reruns local detection for one kind of marker, or both, on an episode or a movie.
Approach
POST /api/v2/admin/items/{id}/redetect-markerstakes an optionalkindofintro,credits, orall(the default) and answers 202. Episodes run the chosen kinds. Movies acceptcreditsorall;introon a movie, or an unknown kind, is a 422 validation problem. It reuses the handler path ofrefresh-markersandredetect-intro, so eligibility, mode, and in-flight rules are the same. The frozen/api/v1routes and v2redetect-introare unchanged.redetect_markers: true, and itsmovie_creditsdescription now names this operation too.Validation
tsc, Prettier, and ESLint: pass.TestAdminSubtitleListPageDBandTestAdminResourceCapabilitiesAndScopefail locally, as they do onmainin the same environment.make lint-changed: pass.Risks
A new additive v2 operation and capability field. The system-info fixture's contract digest changes, so the copies of
get_system_info_ok.jsoninsilo-appleandsilo-androidneed the same update. Clients need no other change; they can offer the action once they seeredetect_markers.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add admin re-detection of intro, credits, or all markers for an item
POST /api/v2/admin/items/{id}/redetect-markers, which accepts an optionalkindof intro, credits, or all (default all) and returns HTTP 202, with HTTP 409 for conflicts (see admin_catalog_intro.go and admin_intro.go).redetect_markers; admin UI pages use this to decide whether the new action is available.RedetectMarkersDialogpicker and updates theActionBaroverflow menu. Episodes show a generic re-detect action with a kind picker; movies show a direct credits-only action gated on bothredetect_markersandmovie_credits.EpisodeContent/MovieContentwith theuseRedetectItemMarkersmutation hook.ActionBarre-detection callback contract changes from an intro-only callback toonRedetectMarkers(kind)with a shared pending flag; the previous intro-only menu action is gone, replaced by generic or direct-kind actions. When the new route 404s, only episode intro requests fall back to the legacy episode-only operation; other kinds surface the error. In-flight re-detection for the same item is deduplicated across marker kinds and returnsalready_running.Macroscope summarized 805a315.