Quality profile for preferring one language and if it is not availible, use English

Sonarr version (exact version): 4.0.11.2680-ls263 by linuxserver.io
OS: Docker (Host is raspberry os)
Description of issue:
I’m trying to create quality profile for downloading Ukranian releases and when Ukrainian is not available to download English ones.
So I’ve created 2 custom formats and created quality profile for them, where Ukranian lang had more points than English.

When use profile for Ukranian only lang (the same but english format has 0 scoring), it grabs Ukranian releases as expected


Here is formats JSONs and screenshot of the profile:

Ukranian:

{
  "name": "Ukrainian",
  "includeCustomFormatWhenRenaming": false,
  "specifications": [
    {
      "name": "Ukrainian Lang",
      "implementation": "LanguageSpecification",
      "negate": false,
      "required": true,
      "fields": {
        "value": 30,
        "exceptLanguage": false
      }
    }
  ]
}

English:

{
  "name": "English Audio Fallback ",
  "includeCustomFormatWhenRenaming": false,
  "specifications": [
    {
      "name": "English Lang",
      "implementation": "LanguageSpecification",
      "negate": false,
      "required": true,
      "fields": {
        "value": 1,
        "exceptLanguage": false
      }
    }
  ]
}

Profile:

But it is not working, it download English release despite having Ukrainian ones. Here is the screenshot of search results:

Any suggestions where I messed up? May be approach with quality profile and custom formats is wrong as idea and there is other way to do what I want to do?

I’ve tried TRaSH guide as well but result stays the same.

Quality is going to win over Custom Format score, then you need to consider that English + Ukrainian will be +15000, beating out +10000, you may be able to do something not have English + Ukrainian scored as high with a negated match on Ukrainian.

English + Ukr is fine for me, and in most of releases with ukr lang they also have eng, so it fine for me. But my issue is often it choose english only release with 5k score, when 10k ukr or 15k ukr+eng releases are available.

Like I said in my original reply quality wins out over score (and everything else) and the one item with a 5k score is Bluray 1080p Remux which is your highest allowed quality. If you want your CF score to be preferred you need to merge all qualities you want to be treated equally.

This wiki article explains how releases are compared.
https://wiki.servarr.com/sonarr/faq#how-are-possible-downloads-compared