Repository navigation
fix(scanners): resolve abandoned seasons at end of run - #3579
Conversation
📝 Walkthrough
Merge Risk: 🟡 Moderate · up to A lookup failure on one Sonarr server could cause an active season request to be resolved incorrectly. Guard resets in that case before merging, or explicitly accept the risk. Security Architecture Review
Pre-merge checks |
|
a9d4372 to
4f843c4
Compare
4f843c4 to
bc06379
Compare
…ing it processShow wrote serviceId, externalServiceId and externalServiceSlug from whichever Sonarr server it scanned last, so with two same-quality servers the link and progress badge could point at one that had abandoned the show and flip between scans. A server with nothing in progress for that quality no longer overwrites them on a show that is PROCESSING, matching the movie path. Scanners that have not opted in keep their current writes.
…cess A series whose lookup threw in processSonarrSeries never recorded its processing seasons while the scan still counted as complete, so another server reporting the season unmonitored could get it removed from a request, or the request declined or completed. Failures are now recorded per quality by tvdbId and matched to the show through other servers' successful lookups, and the resolver leaves those shows alone for the run.
3ec5584 to
ed5aba0
Compare
seerr
|
||||||||||||||||||||||||||||
| Project |
seerr
|
| Branch Review |
develop
|
| Run status |
|
| Run duration | 02m 10s |
| Commit |
|
| Committer | fallenbagel |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
33
|
| View all changes introduced in this branch ↗︎ | |
* fix(backend-rs): keep user settings and private media data out of responses
A user embedded in another entity's response (a request's requestedBy and
modifiedBy, an issue's users, an issue comment's user, watchlist and push
subscription users, the bulk permission update) carried its eager settings
relation, exposing Pushover, Pushbullet, Telegram, Discord and PGP values.
Nested users now serialize like Node's User.toJSON, without settings; only
a top-level User.filter(true) (own profile, user manager) still includes
them, and /auth/me already sends its own allowlist.
GET /movie/{id} and GET /tv/{id} returned mediaInfo with every requester's
email and Plex id and the full issues, comments included, to any signed-in
user. Requests' users now go through User.filter(), and issues are only
included for viewers with an issue permission, without comments or the
problem season and episode.
Ported from seerr-team/seerr 53e77bf (GHSA-8j73-j6rc-q8xh) and
9fda1c6 (GHSA-xc6j-6p6h-p799).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): enforce the advanced request permission on request routing
POST /request took serverId, profileId, rootFolder, languageProfileId,
metadataLanguageId and tags from any requester, and PUT /request let a
series owner change them, although only MANAGE_REQUESTS or
REQUEST_ADVANCED may pick where a request goes. Those fields are now
ignored for everyone else. A requested server must be a configured
server of the request's quality; otherwise the request goes to the
default server without the requested options, and sending a request
whose stored serverId is no server of its quality falls back to the
default server and its settings.
Override rules now match the server the request is sent to rather than
always the default one, and apply to advanced requesters too, filling in
only what they left unset.
A series edit without seasons answers 400 instead of 500.
Ported from seerr-team#3674, seerr-team#3538 and
seerr-team#3539.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): enforce the quota and covered seasons when editing a request
PUT /request credited the request's own quota units back even when they
were never counted: when the request moves to another owner, or was
created before the owner's quota window. It now credits them only when the
owner's quota counted them, and moving a movie request onto another user
answers 403 when their movie quota is spent.
A series edit could add seasons the library already has; those are now
left out unless the request already holds them, and the quota is charged
for the seasons the request ends up with.
Edits now take the same lock as request creation, so an edit and a new
request can't claim the same season or quota at once.
Ported from seerr-team#3378, seerr-team#3379 and
seerr-team#3380.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): report the Plex watchlist sync schedule in minutes
The job runs every few minutes (every 3 by default), but the jobs list
reported a seconds interval, so the schedule editor offered 30, 45 and
60 seconds. It now reports minutes, and the editor offers 3 minutes too.
Ported from seerr-team#3593.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): set the media server type when the admin signs in with Plex
With users already in the database but no media server configured (a
restored database, say), the admin's Plex sign-in left the server type
unset, so the Plex jobs never ran. Signing in as the admin now sets it to
Plex and starts the jobs again. Starting the jobs a second time now drops
the earlier schedule and schedules every job for the new server, where it
used to do nothing.
Ported from seerr-team#3652.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): only ask Radarr to search movies it considers available
Requesting an unreleased movie already in Radarr triggered a search
Radarr can't act on. The search now only runs when Radarr reports the
movie as available; Radarr searches by itself once it is.
Ported from seerr-team#3533.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): sort requests by creation date when sorting by added
GET /request?sort=added (the spec's default) ordered by id, and requests
tied on the sort column came back in an arbitrary order. "added" now
orders by createdAt, and both sorts break ties by id in the same
direction, which also makes the Postgres-only reordering pass that
reproduced the tied order unnecessary.
Ported from seerr-team#3589.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): harden the Plex watchlist fetch
An answer from Plex Discover without a usable MediaContainer (an error
body, say) was cached with its ETag, so every later fetch was answered
304 and kept failing. Only a valid page is cached now, a cached invalid
one is dropped before it is revalidated, and items listed under Video
are read too.
The metadata of every item on the page was fetched at once; at most five
are fetched at a time now, and an item whose fetch times out or can't
connect is skipped instead of emptying the whole page.
Ported from seerr-team#3406 and seerr-team#3251.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(api): describe the watchlist POST body and its 201 answer
POST /watchlist was documented as taking a whole Watchlist entity and
answering 200; it takes tmdbId and mediaType (required), ratingKey and
title, and answers 201. With the spec validator on, a body without
tmdbId or mediaType is now refused with a 400.
Ported from seerr-team#3425.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): scan the series of recently added Jellyfin episodes
Jellyfin's recently added list returns seasons and episodes when only new
episodes of a show were added; the scan skipped those, so the show's new
episodes weren't picked up until the full scan. A season or episode now
scans the series it belongs to.
Ported from seerr-team#3551.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): decline requests whose title the *arr servers stopped pursuing
When a Radarr movie or Sonarr season that was processing turned
unmonitored with nothing downloaded, the scan reset it to unknown but left
its approved requests approved, so the title could not be requested
again. The reset also depended on which server was scanned first: one
server could reset a title another still pursued, and an abandoned entry
claimed the title's service ids.
The Radarr and Sonarr scans now leave such titles and seasons as they are
until every server was scanned. A title or season no server pursues, and
that no server failed to scan, then falls back to unknown; a title's
approved requests are declined, and a series request loses the abandoned
seasons (keeping its quota units in step), is completed when its remaining
seasons are, and is declined when all its seasons are gone.
Ported from seerr-team#3578 and seerr-team#3579.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(auth): keep polling when plex.tv answers 404 for a pending PIN
plex.tv intermittently answers 404 while polling a PIN that is still
valid, which aborted the Plex sign-in. The poll now retries those until
the PIN's deadline.
Ported from seerr-team#3599.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(i18n): update the zh-Hant notification translations
Ported from seerr-team/seerr f88515b (Weblate).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(backend-rs): leave other requesters' emails out of the request answer
POST /request answered with the title's media and its other requests,
each with its requester's email and Plex id. Those users now go through
User.filter(), as mediaInfo's do since the GHSA-xc6j-6p6h-p799 port.
Upstream still sends them; this follows the advisory's intent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…2) (#1708) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/seerr-team/seerr](https://github.com/seerr-team/seerr) | patch | `v3.5.1` → `v3.5.2` | --- ### Release Notes <details> <summary>seerr-team/seerr (ghcr.io/seerr-team/seerr)</summary> ### [`v3.5.2`](https://github.com/seerr-team/seerr/releases/tag/v3.5.2) [Compare Source](seerr-team/seerr@v3.5.1...v3.5.2) ##### [3.5.2](https://github.com/seerr-team/seerr/compare/v3.5.1..v3.5.2) - 2026-11-12 ##### 🐛 Bug Fixes - *(JellyfinAPI)* Filter episodes by requested season ID ([#​3697](seerr-team/seerr#3697)) - ([7bfc90f](seerr-team/seerr@7bfc90f)) - *(api)* Stop background cache refresh from logging credentials ([#​3699](seerr-team/seerr#3699)) - ([3f7d5c3](seerr-team/seerr@3f7d5c3)) - *(api)* Correct watchlist POST request schema in OpenAPI spec ([#​3425](seerr-team/seerr#3425)) - ([84ed3c1](seerr-team/seerr@84ed3c1)) - *(auth)* Set mediaServerType on plex login with existing users ([#​3652](seerr-team/seerr#3652)) - ([84eae67](seerr-team/seerr@84eae67)) - *(auth)* Treat intermittent plex.tv PIN 404s as transient ([#​3599](seerr-team/seerr#3599)) - ([9e2021b](seerr-team/seerr@9e2021b)) - *(details)* Download polling and manage panel close ([#​3676](seerr-team/seerr#3676)) - ([debd54d](seerr-team/seerr@debd54d)) - *(discord)* Link webhook URL label to its field ([#​3702](seerr-team/seerr#3702)) - ([8331f36](seerr-team/seerr@8331f36)) - *(discover)* Preserve trending filters on back navigation ([#​3608](seerr-team/seerr#3608)) - ([efbc937](seerr-team/seerr@efbc937)) - *(jellyfin)* Handle season and episode items in recently added scan ([#​3551](seerr-team/seerr#3551)) - ([cd8aa1f](seerr-team/seerr@cd8aa1f)) - *(jobs)* Use minute intervals for the plex watchlist sync schedule ([#​3593](seerr-team/seerr#3593)) - ([6370562](seerr-team/seerr@6370562)) - *(migrations)* Use literals for new columns in SQLite table-copy migrations ([#​3695](seerr-team/seerr#3695)) - ([58318ec](seerr-team/seerr@58318ec)) - *(override-rules)* Apply rules for the requested server ([#​3538](seerr-team/seerr#3538)) - ([c57dca9](seerr-team/seerr@c57dca9)) - *(plex)* Do not cache invalid Discover watchlist responses ([#​3406](seerr-team/seerr#3406)) - ([9a5c89f](seerr-team/seerr@9a5c89f)) - *(radarr)* Initiate Radarr movie search only if movie is available ([#​3533](seerr-team/seerr#3533)) - ([978f437](seerr-team/seerr@978f437)) - *(request)* Enforce advanced request permission on the API ([#​3674](seerr-team/seerr#3674)) - ([af03562](seerr-team/seerr@af03562)) - *(requests)* Handle 202 no-seasons response in TV request modal ([#​3573](seerr-team/seerr#3573)) - ([d09072a](seerr-team/seerr@d09072a)) - *(requests)* Sort requests by creation date instead of just id ([#​3589](seerr-team/seerr#3589)) - ([53e4564](seerr-team/seerr@53e4564)) - *(scanners)* Resolve abandoned seasons at end of run ([#​3579](seerr-team/seerr#3579)) - ([b185621](seerr-team/seerr@b185621)) - *(scanners)* Decline request when media resets to UNKNOWN ([#​3578](seerr-team/seerr#3578)) - ([8f2ecee](seerr-team/seerr@8f2ecee)) - *(settings)* Allow trailing slash in YouTube URL ([#​3557](seerr-team/seerr#3557)) - ([e959062](seerr-team/seerr@e959062)) - *(slack)* Link notification settings labels to their fields ([#​3679](seerr-team/seerr#3679)) - ([886adac](seerr-team/seerr@886adac)) - *(subscriber)* Avoid savepoint collisions when completing requests ([#​3630](seerr-team/seerr#3630)) - ([31b100d](seerr-team/seerr@31b100d)) ##### 📖 Documentation - *(notifications)* Document missing fields on the remaining agent pages ([#​3611](seerr-team/seerr#3611)) - ([c167958](seerr-team/seerr@c167958)) - *(telegram)* Document the Thread/Topic ID and Embed Poster settings ([#​3550](seerr-team/seerr#3550)) - ([14ed03d](seerr-team/seerr@14ed03d)) - Clarify AI policy, add review times, update branch naming ([#​3636](seerr-team/seerr#3636)) - ([63f4663](seerr-team/seerr@63f4663)) - Add a warning about new contribution scope ([#​3595](seerr-team/seerr#3595)) - ([1406e6e](seerr-team/seerr@1406e6e)) - Fix backups menu ([#​3575](seerr-team/seerr#3575)) - ([2cfbcf8](seerr-team/seerr@2cfbcf8)) ##### 🧪 Testing - *(cypress)* Fix watchlist and manage panel flakes ([#​3675](seerr-team/seerr#3675)) - ([f80beb9](seerr-team/seerr@f80beb9)) - *(cypress)* Fix flaky keyword spec and keep only failure videos ([#​3649](seerr-team/seerr#3649)) - ([b4ea6e8](seerr-team/seerr@b4ea6e8)) ##### ⚙️ Miscellaneous Tasks - *(actions)* Update dependency ubuntu to v26 ([#​3638](seerr-team/seerr#3638)) - ([3153656](seerr-team/seerr@3153656)) - *(cypress)* Fix paths filter and bump github-action to v7.4.6 ([#​3648](seerr-team/seerr#3648)) - ([f288fff](seerr-team/seerr@f288fff)) - *(devenv)* Update dependencies ([#​3631](seerr-team/seerr#3631)) - ([6f63b08](seerr-team/seerr@6f63b08)) - *(docker)* Update node.js to v22.23.5 ([#​3711](seerr-team/seerr#3711)) - ([d19d50e](seerr-team/seerr@d19d50e)) - *(docker)* Update node.js to v22.23.4 ([#​3639](seerr-team/seerr#3639)) - ([0b27912](seerr-team/seerr@0b27912)) - *(git-cliff)* Add build type to miscellaneous tasks ([#​3640](seerr-team/seerr#3640)) - ([62ed636](seerr-team/seerr@62ed636)) - *(i18n)* Update translations from Weblate - ([854effb](seerr-team/seerr@854effb)) - *(i18n)* Update translations from Weblate - ([b4b85dc](seerr-team/seerr@b4b85dc)) - *(i18n)* Update translations from Weblate - ([381ce98](seerr-team/seerr@381ce98)) - *(i18n)* Update translations from Weblate - ([dca1af6](seerr-team/seerr@dca1af6)) - *(i18n)* Update translations from Weblate - ([1313800](seerr-team/seerr@1313800)) - *(i18n)* Update translations from Weblate - ([f88515b](seerr-team/seerr@f88515b)) - *(pr-validation)* Exempt maintainers by repo permission level ([#​3637](seerr-team/seerr#3637)) - ([f9fe7a9](seerr-team/seerr@f9fe7a9)) - *(release)* Prepare v3.5.2 - ([18a90b4](seerr-team/seerr@18a90b4)) - *(release)* Prepare 3.5.2 release - ([1889c6a](seerr-team/seerr@1889c6a)) - Migrate to gh actions-lock ([#​3632](seerr-team/seerr#3632)) - ([53299c1](seerr-team/seerr@53299c1)) - Add vulnerability report ([#​3587](seerr-team/seerr#3587)) - ([e00d685](seerr-team/seerr@e00d685)) ##### New Contributors ❤️ - [@​thirstyraven](https://github.com/thirstyraven) made their first contribution - [@​jkhsjdhjs](https://github.com/jkhsjdhjs) made their first contribution - [@​pattems](https://github.com/pattems) made their first contribution - [@​rpardini](https://github.com/rpardini) made their first contribution - [@​cplieger](https://github.com/cplieger) made their first contribution - [@​kinn81](https://github.com/kinn81) made their first contribution - [@​scottfridwin](https://github.com/scottfridwin) made their first contribution - [@​BBijaya](https://github.com/BBijaya) made their first contribution </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjEuNiIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMS42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.xcd.dev/gabrielcosi/home-ops/pulls/1708
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [seerr/seerr](https://github.com/seerr-team/seerr) | patch | `v3.5.1` → `v3.5.2` | --- ### Release Notes <details> <summary>seerr-team/seerr (seerr/seerr)</summary> ### [`v3.5.2`](https://github.com/seerr-team/seerr/releases/tag/v3.5.2) [Compare Source](seerr-team/seerr@v3.5.1...v3.5.2) > \[!WARNING] > **This release fixes 3 security vulnerabilities. All users should update to 3.5.2 as soon as possible.** > > To give everyone time to upgrade, full details will be published as security advisories on **November 15, 2026**. Once published, the details will be public, so update now rather than waiting for the advisories. > > These release notes will be updated with links to the advisories once they're published. ##### 🐛 Bug Fixes - *(JellyfinAPI)* Filter episodes by requested season ID ([#​3697](seerr-team/seerr#3697)) - ([7bfc90f](seerr-team/seerr@7bfc90f)) - *(api)* Stop background cache refresh from logging credentials ([#​3699](seerr-team/seerr#3699)) - ([3f7d5c3](seerr-team/seerr@3f7d5c3)) - *(api)* Correct watchlist POST request schema in OpenAPI spec ([#​3425](seerr-team/seerr#3425)) - ([84ed3c1](seerr-team/seerr@84ed3c1)) - *(auth)* Set mediaServerType on plex login with existing users ([#​3652](seerr-team/seerr#3652)) - ([84eae67](seerr-team/seerr@84eae67)) - *(auth)* Treat intermittent plex.tv PIN 404s as transient ([#​3599](seerr-team/seerr#3599)) - ([9e2021b](seerr-team/seerr@9e2021b)) - *(details)* Download polling and manage panel close ([#​3676](seerr-team/seerr#3676)) - ([debd54d](seerr-team/seerr@debd54d)) - *(discord)* Link webhook URL label to its field ([#​3702](seerr-team/seerr#3702)) - ([8331f36](seerr-team/seerr@8331f36)) - *(discover)* Preserve trending filters on back navigation ([#​3608](seerr-team/seerr#3608)) - ([efbc937](seerr-team/seerr@efbc937)) - *(jellyfin)* Handle season and episode items in recently added scan ([#​3551](seerr-team/seerr#3551)) - ([cd8aa1f](seerr-team/seerr@cd8aa1f)) - *(jobs)* Use minute intervals for the plex watchlist sync schedule ([#​3593](seerr-team/seerr#3593)) - ([6370562](seerr-team/seerr@6370562)) - *(migrations)* Use literals for new columns in SQLite table-copy migrations ([#​3695](seerr-team/seerr#3695)) - ([58318ec](seerr-team/seerr@58318ec)) - *(override-rules)* Apply rules for the requested server ([#​3538](seerr-team/seerr#3538)) - ([c57dca9](seerr-team/seerr@c57dca9)) - *(plex)* Do not cache invalid Discover watchlist responses ([#​3406](seerr-team/seerr#3406)) - ([9a5c89f](seerr-team/seerr@9a5c89f)) - *(radarr)* Initiate Radarr movie search only if movie is available ([#​3533](seerr-team/seerr#3533)) - ([978f437](seerr-team/seerr@978f437)) - *(request)* Enforce advanced request permission on the API ([#​3674](seerr-team/seerr#3674)) - ([af03562](seerr-team/seerr@af03562)) - *(requests)* Handle 202 no-seasons response in TV request modal ([#​3573](seerr-team/seerr#3573)) - ([d09072a](seerr-team/seerr@d09072a)) - *(requests)* Sort requests by creation date instead of just id ([#​3589](seerr-team/seerr#3589)) - ([53e4564](seerr-team/seerr@53e4564)) - *(scanners)* Resolve abandoned seasons at end of run ([#​3579](seerr-team/seerr#3579)) - ([b185621](seerr-team/seerr@b185621)) - *(scanners)* Decline request when media resets to UNKNOWN ([#​3578](seerr-team/seerr#3578)) - ([8f2ecee](seerr-team/seerr@8f2ecee)) - *(settings)* Allow trailing slash in YouTube URL ([#​3557](seerr-team/seerr#3557)) - ([e959062](seerr-team/seerr@e959062)) - *(slack)* Link notification settings labels to their fields ([#​3679](seerr-team/seerr#3679)) - ([886adac](seerr-team/seerr@886adac)) - *(subscriber)* Avoid savepoint collisions when completing requests ([#​3630](seerr-team/seerr#3630)) - ([31b100d](seerr-team/seerr@31b100d)) ##### 📖 Documentation - *(notifications)* Document missing fields on the remaining agent pages ([#​3611](seerr-team/seerr#3611)) - ([c167958](seerr-team/seerr@c167958)) - *(telegram)* Document the Thread/Topic ID and Embed Poster settings ([#​3550](seerr-team/seerr#3550)) - ([14ed03d](seerr-team/seerr@14ed03d)) - Clarify AI policy, add review times, update branch naming ([#​3636](seerr-team/seerr#3636)) - ([63f4663](seerr-team/seerr@63f4663)) - Add a warning about new contribution scope ([#​3595](seerr-team/seerr#3595)) - ([1406e6e](seerr-team/seerr@1406e6e)) - Fix backups menu ([#​3575](seerr-team/seerr#3575)) - ([2cfbcf8](seerr-team/seerr@2cfbcf8)) ##### 🧪 Testing - *(cypress)* Fix watchlist and manage panel flakes ([#​3675](seerr-team/seerr#3675)) - ([f80beb9](seerr-team/seerr@f80beb9)) - *(cypress)* Fix flaky keyword spec and keep only failure videos ([#​3649](seerr-team/seerr#3649)) - ([b4ea6e8](seerr-team/seerr@b4ea6e8)) ##### ⚙️ Miscellaneous Tasks - *(actions)* Update dependency ubuntu to v26 ([#​3638](seerr-team/seerr#3638)) - ([3153656](seerr-team/seerr@3153656)) - *(cypress)* Fix paths filter and bump github-action to v7.4.6 ([#​3648](seerr-team/seerr#3648)) - ([f288fff](seerr-team/seerr@f288fff)) - *(devenv)* Update dependencies ([#​3631](seerr-team/seerr#3631)) - ([6f63b08](seerr-team/seerr@6f63b08)) - *(docker)* Update node.js to v22.23.5 ([#​3711](seerr-team/seerr#3711)) - ([d19d50e](seerr-team/seerr@d19d50e)) - *(docker)* Update node.js to v22.23.4 ([#​3639](seerr-team/seerr#3639)) - ([0b27912](seerr-team/seerr@0b27912)) - *(git-cliff)* Add build type to miscellaneous tasks ([#​3640](seerr-team/seerr#3640)) - ([62ed636](seerr-team/seerr@62ed636)) - *(i18n)* Update translations from Weblate - ([854effb](seerr-team/seerr@854effb)) - *(i18n)* Update translations from Weblate - ([b4b85dc](seerr-team/seerr@b4b85dc)) - *(i18n)* Update translations from Weblate - ([381ce98](seerr-team/seerr@381ce98)) - *(i18n)* Update translations from Weblate - ([dca1af6](seerr-team/seerr@dca1af6)) - *(i18n)* Update translations from Weblate - ([1313800](seerr-team/seerr@1313800)) - *(i18n)* Update translations from Weblate - ([f88515b](seerr-team/seerr@f88515b)) - *(pr-validation)* Exempt maintainers by repo permission level ([#​3637](seerr-team/seerr#3637)) - ([f9fe7a9](seerr-team/seerr@f9fe7a9)) - *(release)* Prepare v3.5.2 - ([18a90b4](seerr-team/seerr@18a90b4)) - *(release)* Prepare 3.5.2 release - ([1889c6a](seerr-team/seerr@1889c6a)) - Migrate to gh actions-lock ([#​3632](seerr-team/seerr#3632)) - ([53299c1](seerr-team/seerr@53299c1)) - Add vulnerability report ([#​3587](seerr-team/seerr#3587)) - ([e00d685](seerr-team/seerr@e00d685)) ##### New Contributors ❤️ - [@​thirstyraven](https://github.com/thirstyraven) made their first contribution - [@​jkhsjdhjs](https://github.com/jkhsjdhjs) made their first contribution - [@​pattems](https://github.com/pattems) made their first contribution - [@​rpardini](https://github.com/rpardini) made their first contribution - [@​cplieger](https://github.com/cplieger) made their first contribution - [@​kinn81](https://github.com/kinn81) made their first contribution - [@​scottfridwin](https://github.com/scottfridwin) made their first contribution - [@​BBijaya](https://github.com/BBijaya) made their first contribution </details> --- ### Configuration 📅 **Schedule**: (in timezone America/New_York) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.greyrock.io/todd/home-ops/pulls/745
Description
Follow-up to #3578. That PR defers movie resets to the end of the scan, but for TV it only deferred the decline, so seasons still reset and the show status still rolled up inside the per-server loop.
Two problems remained. With two same-quality Sonarr servers, a season unmonitored on one and downloading on the other flapped between UNKNOWN and PROCESSING depending on scan order, and the show's Sonarr link and download progress followed whichever server was scanned last. And a show where one season was abandoned but another stayed available never rolled up to UNKNOWN, so nothing resolved the request, and its season row blocked re-requesting that season forever.
Season resets are now deferred the same way as movie resets, with processing tracked per season. A season counts as abandoned only when the scan completed, no server reported it as processing, and no server failed to process the show. A season Sonarr has never had never reaches PROCESSING, so it's never touched. A season Sonarr had and then dropped, for example after a TVDB renumbering, counts as abandoned unless another server is still downloading it. A server with nothing in progress for a show no longer overwrites its Sonarr link while it's PROCESSING, matching #3578 for movies.
Abandoned seasons are resolved on the request. Their season rows are removed, which frees them for a new request. Marking them declined instead would keep blocking, because the request guard reads the rows without checking their status. Removal is silent since no notification type can describe a single season. A request whose every season was abandoned is declined through the existing path, and one whose remaining seasons are all delivered is completed.
Note
When a same-quality server has sync disabled or returned empty, a deferred season stays PROCESSING instead of resetting in the loop, matching how #3578 handles movies. A server that fails to process a show is matched to it through another server carrying the same TVDB id, so servers carrying one show under different TVDB ids aren't covered.
How Has This Been Tested?
Screenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extractSummary by CodeRabbit