Custom format weights not applied

Sonarr version (exact version): 4.0.16.2944
Mono version (if Sonarr is not running on Windows):
OS: proxmox LXC
Debug logs: Hastebin
Description of issue:
I am tracking a tv show, sonarr found 4k episodes but in English only. As I am not used to watch TV in English, I searched for the same show in Spanish but only found it in 720p which is fine.
So, I created some custom formats to “force” to keep those episodes that are in Spanish with at least 720p. I create a few to make a combination of language and resolutions with different weights:

4k and 2160 check for the resolution to be the one in the title. Same thing with 720 and 1080 with the respective resolutions

Spanish checks for Spanish as language:

Finally the size one is a hard-try I did to fix this issue before posting, somehow try to avoid large files assuming they would be 1080+ and therefore the ones that sonarr found initially

Also, I created 2 profiles: 1 for up to 1080 and 1 for 1080+:


The idea is: if I am willing to find 4k episodes, set that profile to the show, but with a much high score for the language (1000) and for the 1080 or 720, I did the same. Create a score of 1000 for the language, prioritize the 1080 above 720 but with a negative score for the high resolutions expecting sonarr to find those 720 files, but it is not happening.

What happens is:

I clear the files (hardlinks), the import the 720 files manually from the missing section, and automatically they are replaced by the 4k files eventhough the non-4k profile is set for the show:


I see the scores are correct, and that for the file I don’t want to use it’s even negative. But it gets overwritten anyway.

First off, quality beats Custom Formats, so you’ll want to group all qualities you want to consider equal and use Custom Formats to control which is preferred in addition to your language preferences.

I clear the files (hardlinks), the import the 720 files manually from the missing section, and automatically they are replaced by the 4k files eventhough the non-4k profile is set for the show

A profile’s preferences won’t prevent Sonarr from importing files that are higher quality, it just prevents it from grabbing it (outside of Interactive Search), this is intentional as it allows you to grab a release in a quality via Interactive Search that you isn’t allowed in the profile and Sonarr will import it when it’s complete.

If you fix your qualities in your profiles that won’t happen, or just make sure Sonarr can’t see the 4k files and want to import them.

Interesting. How could I do it? I am pretty new to sonarr and the only thing I see is the quality tab but it talks about rates and sizes.

What I would like to do is:

Disregard everything below 720p, group all 720 and 1080p together but apart from 1080+, I although if I don’t understood it correctly, I would need to group the 1080+ together with the others to avoid the issue.

So… Maybe 720 upwards together and 720 downwards together? Would that make sense?

    • EDIT - -

This is what I did, still not working.

I deleted all profiles and left only two of them. One with every format checked except the low resolution ones. This one has a negative score for 4k resolutions.

The other one is the same but with negative for everything except 4k.

Assigned the first one to this show.

Is that what you meant?

Sounds like you’re on the right track, but let’s see a screenshot of your new quality profile.

I am on the go right now, so forgive the screenshot from the phone browser:


When editing the profile, press Edit Groups, then you can drag them into a single group, like I’ve done with the 2160p group in my screenshots.


I did what you suggested. As I was not sure whether to create a single group with everything or two groups one for the wanted ones and one for the unwanted I tried both but none worked.

This is how I left it as it seemed more intuitive to me:

Did the same thing, changed the quality profile, deleted the episodes from the show and add them again using the wanted option.

Same thing happened, first sonarr imported the 720p and immediately replaced by the 720p

Where is it importing them from?

Like I said in my first reply:

If you have better quality files there Sonarr is going to import them, but unless you’re doing something with a blackhole client or telling Sonarr to import via a script it’s not going to be looking for random files.

I have them all in the same root directory. Actually, it’s the qbit download directory.

Do you mean that if the file is already downloaded it will be imported no matter what filters or profiles I set?

If they’re in the category assigned to Sonarr or you tell Sonarr to import from that directory (blackhole or Manual Import) then yes it will accept them as upgrades.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.