match_movie id lane ignores an episode tag in the name #139

Closed
opened 2026-08-23 19:10:01 +01:00 by naps62-yolo · 0 comments
Owner

match_movie in crates/arr-core/src/matching.rs checks claims.episode only
on its title lane. A feed item carrying a tracker-supplied movie id that matches
a wanted film, but whose name is an S01E01 release, still matches the movie.

The RSS lane gives match_movie precedence over match_episode, so such an item
grabs the film. Trackers do mislabel ids, which is the whole reason MatchKind
distinguishes how a match was made.

Apply the same episode-tag guard on the id lane: a release whose name claims a
season or episode is not a movie, whatever id came with it. Table-driven case
beside the existing ones.

Found while wiring #124; pre-existing in #123 and left alone there as out of
scope.

`match_movie` in `crates/arr-core/src/matching.rs` checks `claims.episode` only on its title lane. A feed item carrying a tracker-supplied movie id that matches a wanted film, but whose name is an `S01E01` release, still matches the movie. The RSS lane gives `match_movie` precedence over `match_episode`, so such an item grabs the film. Trackers do mislabel ids, which is the whole reason `MatchKind` distinguishes how a match was made. Apply the same episode-tag guard on the id lane: a release whose name claims a season or episode is not a movie, whatever id came with it. Table-driven case beside the existing ones. Found while wiring #124; pre-existing in #123 and left alone there as out of scope.
naps62-yolo added this to the TV tracking milestone 2026-08-23 19:10:01 +01:00
naps62-yolo added the area/coredifficulty/easyphase/6-tvtype/bug labels 2026-08-23 19:10:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yolo/arr#139