Skip to content

media: spot titles get looked up by the spot's kind, and lose a list number - #310

Merged
xbmc4lyfe merged 1 commit into
mainfrom
spot-title-parse
Nov 8, 2026
Merged

xbmc4lyfe merged 1 commit into
mainfrom
spot-title-parse

Conversation

@xbmc4lyfe

Copy link
Copy Markdown
Collaborator

What

The spot release 01. The Matrix (1999) 4k UHD Rife 60fps AI-Enhanced Dolby True-HD Atmos (spot K6rspFvcMg49TvvagOSea@spot.net) showed two skips, even though its stored category is right (Movies/UHD, 2045 via the spot hint, #277):

  • Media lookup: SKIPPED, "no movie or TV title in its name to look up".
  • IDs from the NFO: SKIPPED, "no movie title in its name to find an IMDb id for".

There were two causes:

  1. The media steps re-classify from the name alone. target_of runs category::classify_release, and this free-form name comes out no_match (8000), so there was no movie to look up.
  2. parse_movie kept the list number. Even as a movie, the title came out 01 The Matrix, which would not match.

Fix

  • ReleaseInfo gains spot_kind. It is read with the release in the stage's row query ((select kind from spots where release_id = r.id)) and in web_pending.
  • When a release has a spot, target_of takes the movie or TV parse its kind names, the same rule the category hint uses, instead of the name rules' pick.
  • parse_movie drops a leading list number when a space follows it: 01. , 3 - , 12) .
    • 21.Jump.Street.2012, 1917 (2019), 300 (2006) and 2001 A Space Odyssey (1968) keep their numbers.
    • Both prod Matrix sequels have the same shape: 02. The Matrix Reloaded, 03. The Matrix Revolutions.

Tests

  • media::parse::a_list_number_before_the_title_goes: the three shapes, and the numbers that must stay.
  • media::steps::a_spots_kind_gives_its_title_to_look_up: without the spot there is no target. With it the target is Movie, The Matrix, 1999, and media lookup no longer gives a skip reason.
  • cargo test --lib passes (1586).
  • cargo test --tests has only the known failures on this Mac (media_providers 4, media_stage 3, partial_pass 1), plus privacy_guardrails, which needs a PR range on origin/main.

No UI change: the release page's step reasons change on their own.

🤖 Generated with Claude Code

…number

A spot's title is what its spotter typed: '01. The Matrix (1999) 4k UHD
Rife 60fps AI-Enhanced Dolby True-HD Atmos' reads as no category to the
name rules, so media lookup and the NFO's IMDb step skipped it with 'no
movie or TV title in its name'. ReleaseInfo now carries the spot's kind,
and the media steps take the movie or TV parse it names. parse_movie
drops a leading list number ('01. ', '3 - ', '12) ') that has a space
after it, so the title is 'The Matrix', 1999.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xbmc4lyfe

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T10:03:08.687104Z 11a4d35 Manual request
🔒 Security Review ❌ Failed 2026-11-08T10:02:05.812590Z
We couldn’t complete this review. Comment @codex security review to try again.
11a4d35 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 11a4d35023

ℹ️ 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".

@xbmc4lyfe

Copy link
Copy Markdown
Collaborator Author

Codex code review is clean on 11a4d35 (the security review couldn't run: usage limit). There are no threads, and the branch is current with main. Merging.

@xbmc4lyfe
xbmc4lyfe marked this pull request as ready for review November 8, 2026 10:04
@xbmc4lyfe
xbmc4lyfe merged commit 22f2636 into main Nov 8, 2026
@xbmc4lyfe
xbmc4lyfe deleted the spot-title-parse branch November 8, 2026 10:04
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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.

1 participant