Skip to content

Override Rules: Add instance support #1560

@LaurenceBarnes

Description

@LaurenceBarnes

Description

Hi fallenbagel and gauthier,

as discussed on the discord, Jellyseerr's Override rules currently do not support automatically redirecting requests to desired instances based on certain conditions. The only way to achieve this currently is to use "Redirecterr", which uses a webhook to redirect requests based on conditions. I am raising this issue because I could not find anything to track it and it is not on the roadmap #926.

One major usecase for this is moving anime to other instances automatically. One reason for this demand is the conflict between different kinds of Media with the Settings "Quality Definitions" (File Size) in Radarr/Sonarr, which are always set globally and cannot be assigned to "Quality Profiles", see https://trash-guides.info/Sonarr/Sonarr-Quality-Settings-File-Size/#animeanimatedcartoons for reference.

There is a PR #1522 that was ported from an Overseerr PR and aims to solve #232.
It does not have the flexibility that this requested feature would add, as there could be use cases for using separate instances for other criteria (e.g. having a separate instance for extremely low resolution versions for specific users that only use phones/tablets, but wanting to keep a better quality version for other users at the same time). I am also not certain if it would support 4k, Anime and Default in combination, which would be relevant with 4k Anime movies increasingly being released.
In my opinion, chasing the improvement of override rules should be preferred to adding another checkbox for each service. It would make the PR obsolete.

Desired Behavior

Blue marking:
Rename the section "Service" to "Target"; Add a dropdown menu named "Target" and allow the two values "Global" or "Service".

If "Service" is selected
show the existing dropdown menu named "Service" that we already have. In "Conditions" and "Settings", everything remains as it currently is.

If "Global" is selected
Section "Condition" remains as it is currently. In the section "Settings" at the spot marked in red, add a line called "Services", where you can select the available Services you'd want Media to be moved to if conditions are met. Remove "Root Folder", "Quality Profile" and "Tags"; those are only necessary for "Service" rules, not for "Global" rules.

Image

These UI changes should prevent contradictions and make sure that those conditions do not conflict by entirely separating the global override rule from service-related rules. They should also solve all the concerns that were mentioned in the discord (see screenshots below).

It might be advisable (if not already implemented) to prevent contradicting rules (e.g. two global rules with the exact same conditions to two different Sonarr-Instances).

Additional Context

Excerpts and technical context from the discord discussion with @gauthier-th and @fallenbagel:

Image

Image

Image

Code of Conduct

  • I agree to follow Jellyseerr's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageThis issue needs to be reviewedenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions