Skip to content

Filter Sonarr v5 releases by multi-season pack - #854

Merged
tillkruss merged 2 commits into
developfrom
feature/multi-season-pack-filter
Nov 4, 2026
Merged

tillkruss merged 2 commits into
developfrom
feature/multi-season-pack-filter

Conversation

@tillkruss

Copy link
Copy Markdown
Collaborator

Follow-up to #837. Sonarr v5 returns all the seasons a release covers in parsedInfo.seasonNumbers, but SonarrV5ReleaseDecoder only kept the first one as seasonNumber.

Changes

  • decode seasonNumbers on SeriesRelease and add isMultiSeason (fullSeason && seasonNumbers.count > 1, the same check Sonarr's interactive search uses since Sonarr/Sonarr@39cc1018)
  • add a Multi-Season Pack option (archivebox icon) to the Season Pack filter. It only shows when the results contain a multi-season pack.
  • changelog and TestFlight notes

Behavior

  • Season Pack still matches multi-season packs, the same as Sonarr's own Season Pack filter. Season searches default to it, so they keep showing these packs.
  • Sonarr v4 doesn't send seasonNumbers, so isMultiSeason is always false there and the option never shows. Its v3 API only gained the field on v5 builds.
  • The "Multi-Season Pack" string was already localized in Support Sonarr's multi-season pack release type #837.

Verified

  • iOS Simulator and macOS builds pass, and SwiftLint is clean.
  • Simulator harness (not committed), using a v5-shaped copy of series-releases.json with two releases changed to seasonNumbers: [1, 2]:
    • SonarrV5ReleaseDecoder decodes seasonNumbers
    • the filter counts come out as Any 96, Season Pack 18, Multi-Season Pack 2, Single Episode 78
    • the release list shows only the two packs when the filter is on

Not covered

  • not tested against a live Sonarr v5 instance
  • no screenshot of the filter menu, because this machine has no Simulator.app to open it
  • no unit test: SeriesRelease isn't compiled into the Tests target

🤖 Generated with Claude Code

https://claude.ai/code/session_01MYjz4pBvBG88WMxi43TbX9

Sonarr v5 returns every season a release covers in `parsedInfo.seasonNumbers`.
Keep them on `SeriesRelease` and add a Multi-Season Pack option to the season
pack filter, matching Sonarr's own `fullSeason && seasonNumbers.length > 1`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MYjz4pBvBG88WMxi43TbX9
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T01:11:03.148772Z 3b45c24 PR opened
ℹ️ 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MYjz4pBvBG88WMxi43TbX9
@tillkruss
tillkruss merged commit fc0df40 into develop Nov 4, 2026
5 of 6 checks passed
@tillkruss
tillkruss deleted the feature/multi-season-pack-filter branch November 4, 2026 01:25
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