feat(sonarr): add season recap downloader - #7
Open
mvanbaak wants to merge 24 commits into
Open
Conversation
…temp file cleanup
mvanbaak
force-pushed
the
feat/sonarr-recap-downloader
branch
from
September 11, 2026 13:09
83016a9 to
50cc9cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New
sonarr/connect/download_recap.shConnect script for Sonarr: downloads the previous season's recap when a new season starts (triggered on theDownloadevent).Discovery chain
type == "Recap" && official == true) per configured languageFAN_MADEconfig:never | fallback | alwaysAll candidates are ranked and the single best recap per (season, language) is downloaded. Junk titles (trailers, teasers, soundtracks, reactions, reviews, interviews, single-episode recaps) are filtered. Search width configurable via
RECAP_SEARCH_COUNT(default 10).Storage (Plex extras naming scheme)
STORAGE_MODEconfig:show(default,Other/),season(Season NN/Other/), orboth(show-level download + hardlink into season folder,cpfallback). A recap of season N lands in the Season N+1 folder (the watched season); the filename still names the recapped season. Multi-language support with subtitles for original-language recaps. Bulk mode backfills recaps for all downloaded seasons.Refactor
radarr/connect/scripts_common.sh: addedsonarr_api_get(),get_series_info(), Sonarr API defaults, and moved shared defaults +lang_to_iso639_1/notify_autopulsefrom the trailer script (both scripts now source these).radarr/connect/download_trailer.sh: dropped duplicated shared code, bumped to 0.4.0. Behavior unchanged.sonarr/connect/scripts.conf.sample, README + AGENTS.md docs.Notes
testsuite in this repo; scripts verified viash -n+shellcheck -e SC1091,SC3043, all clean.sonarr_series_tmdbidfrom the Sonarr API/env directly (no TMDBfindcall needed).find /path/to/Series -path "*/Other/Recap-*" -type f -delete