Skip to content

Comments

fix: rewrite generator to fix SQP quality definitions and auto-disambiguate IDs#173

Merged
yammes08 merged 2 commits intov8from
fix/generator-sqp-quality-def-and-id-disambiguation
Feb 23, 2026
Merged

fix: rewrite generator to fix SQP quality definitions and auto-disambiguate IDs#173
yammes08 merged 2 commits intov8from
fix/generator-sqp-quality-def-and-id-disambiguation

Conversation

@rcdailey
Copy link
Member

@rcdailey rcdailey commented Feb 23, 2026

Summary

  • Rewrites generate-template.py to process all services in a single pass, automatically detecting and prefixing cross-service template ID collisions with the service name
  • Fixes SQP quality definition inference: SQP-1 variants use sqp-streaming, all others use sqp-uhd (previously used an unreliable allows_2160p heuristic)
  • Regenerates all templates with corrected instance names and quality definitions

Fixes #172
Supersedes the manual fixes in #170 and #171

cc @alex-matthews

@rcdailey rcdailey requested a review from yammes08 February 23, 2026 01:11
@yammes08
Copy link
Collaborator

I'm not sure this is correct - my understanding is that only the SQP-1 variants should be using sqp-streaming.

Replace GuideResources class with standalone load_* functions and a
central build_template_specs() that processes radarr and sonarr
together. Template IDs that collide across services are automatically
disambiguated by prefixing with the service name via a Counter pass,
eliminating the need to manually track or fix collisions.

Also tightens allows_2160p() to allows_remux_2160p(), checking strictly
for Remux-2160p rather than any quality containing "2160p". This
corrects the SQP quality definition inference so streaming-only
profiles (SQP-4, SQP-5) emit sqp-streaming instead of sqp-uhd.

Fixes #172
SQP-4 and SQP-5 profiles do not include Remux-2160p, so sqp-streaming
is the correct quality definition rather than sqp-uhd. Also regenerates
all templates with the updated generator: instance names for
cross-service collisions now use the service-prefixed form
(e.g. radarr-anime-remux-1080p) and templates.json entry order is
updated to match generator output.

Fixes #172
@rcdailey rcdailey force-pushed the fix/generator-sqp-quality-def-and-id-disambiguation branch from 1951022 to 460b082 Compare February 23, 2026 01:40
@rcdailey
Copy link
Member Author

I think I fixed it. I didn't like it, but the script just hard-codes against sqp-1 to determine the quality definition

@yammes08 yammes08 merged commit f5c0f02 into v8 Feb 23, 2026
6 checks passed
@yammes08 yammes08 deleted the fix/generator-sqp-quality-def-and-id-disambiguation branch February 23, 2026 14:28
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.

2 participants