feat: auto quality profile switch#2
Open
mvanbaak wants to merge 3 commits into
Open
Conversation
- docs/quality-switch-spec.md: full spec for auto quality profile switch script — problem statement, research summary, algorithm, config knobs, edge cases, implementation plan - radarr/research/release_date_stats.sh: research tool for analyzing release date distribution, stored in research/ directory to signal it's an analysis tool, not a production Connect script
- Add hasFile and monitored filters to candidate criteria - Inline actual jq code for threshold computation (no external refs) - Define DRY_RUN vs --apply flag precedence - Add scripts.conf.sample update as Phase 1 deliverable - Remove column -t dependency, use printf formatting instead - Document POST /api/v3/command success criteria (HTTP 200 + jobId) - Document load_config optional path argument and working example - Note index-based percentile approximation method - Add --json vs --quiet output precedence rules
radarr/auto_quality_switch.sh: - Dynamic P95 threshold computation via IQR-filtered web->physical gap - Profile resolution from Radarr API by name - Candidate matching with hasFile, monitored, qualityProfileId filters - Dry-run default, --apply to execute - Batch limiting via MAX_SWITCH_PER_RUN - Radarr search trigger after switch (TRIGGER_SEARCH) - Pretty table output + JSON mode (--json) - All config overridable in scripts.conf radarr/connect/scripts.conf.sample: add auto quality switch vars
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.
Dynamic P95 threshold script that detects movies unlikely to get physical release and switches them to WebDL profile + triggers search.
--applyto execute--json)