Propagate auto-track intent to new seasons #76
Merged
naps62-yolo
merged 5 commits from 2026-08-22 22:26:23 +01:00
issue/35-auto-track into main
Labels
Clear labels
area/api
area/ci
area/compat
area/core
area/daemon
area/db
area/dl
area/indexer
area/infra
area/meta
area/parse
area/probe
area/subs
area/web
difficulty/easy
difficulty/hard
difficulty/moderate
difficulty/trivial
phase/1-skeleton
phase/2-logic
phase/3-sourcing
phase/4-movies
phase/5-ui
phase/6-tv
phase/7-people
phase/8-compat
phase/9-subtitles
type/bug
type/chore
type/feature
type/test
arr-api
CI and test harness
arr-compat
arr-core
arr-daemon
arr-db
arr-dl
arr-indexer
workspace and tooling
arr-meta
arr-parse
arr-probe
arr-subs crate: providers, extraction, translation, sync
web/
bounded, obvious approach, few files
subtle correctness or cross-cutting
multiple files, judgement, an interface to design
one file, mechanical, no design decisions
workspace, CI, config, database, empty API and SPA
parsing and policy engine, pure, no network
TMDB and Prowlarr, read-only
movies end to end
search, buckets, library views, queues
seasons, episodes, tracking, derived status
owner tags and notifications
Jellyseerr shim
build order: subtitles, DESIGN.md §15
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: yolo/arr#76
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds a pure
arr-corerule for metadata refreshes to mark episodes in newly revealed seasons wanted only when the series hasauto_trackenabled. Existing leaf intent is never changed for untracked series.Closes #35
Verification
just ciReviewed
9b3edcb.Season.tracked(schema §4, added in #71) is untouched. When the daemon wires this in, revealing a new season on anauto_trackseries presumably also setsSeason.tracked— worth deciding where that lands, since this function's signature can't express it.@@ -0,0 +4,4 @@////// Callers pass only episodes from a newly revealed season. Existing seasons/// keep their leaf-level intent unchanged.pub fn apply_new_season_auto_track(series: &Series, episodes: &mut [Episode]) {"Newly revealed season" includes TMDB season 0 (specials). Auto-marking specials wanted is the classic Sonarr annoyance. Neither DESIGN.md §4.1 nor #35 decides it, and the caller contract silently punts it to the daemon. Decide here (skip specials, or take the
Seasonand checknumber) or state the expectation in the doc comment.@@ -0,0 +71,4 @@apply_new_season_auto_track(&series(false), &mut new_season);assert!(manually_wanted_season.iter().all(|episode| episode.wanted));manually_wanted_seasonis never passed to the function, so this assertion checks a literal against itself. It documents §4.1 but proves nothing — keep thenew_seasonassertion, drop the array or restructure.Reviewed
780bca4. Earlier findings addressed — season zero decided and documented, tests exercise the function,Season.trackedhandled viaRefreshedSeason. No findings.