Script own automatic search

I’d like to be able to script my own search. The thing is, I want to allow quality downgrade if it’s not enough seeders. I guess I only need the variables and functions in the manual search feature. So I then need at least these variables:

  • Title
  • Peers
  • Quality
    of all the episodes.

It would be really great to have this, then I could script my search for my own needs.

Example of what I need:

  • If a torrent is 1080p and have 2 seeders, then I want to check for episodes with more seeders. If 720p have a episode with 5 seeders, I want that one instead.
  • If I already have 1080p, I don’t then really need 1080p BluRay. That’s kinda waste.

The only way I could see it being done is a global minimum seeders option.

If you don’t want to upgrade 1080p HDTV to 1080p BluRay, then just change your cut off to 1080p HDTV in your profile(s) and it won’t upgrade.

There is no global minimum seeders option, not sure if it is that you meant. A such option would be helpful.

True, BUT if Sonarr first download 1080p BluRay and have 1080 HDTV as cutt off, won’t Sonarr attempt to downgrade?

yes it will

That’s the problem, I don’t want that to happen.

Sonarr won’t downgrade regardless of cut off unless you manually do it. Even via the Drone Factory won’t import a downgrade automatically.

If you have HDTV, WEB-DL, BluRay selected with cutoff at HDTV, it will download whichever it sees first via RSS and that is it, the cutoff is met and won’t be touched automatically. If you do an automatic search, it will take the highest available quality and then leave it alone, because the cut off is met.

There is no minimum seeders setting at the moment, that was my suggestion.

Silent is correct.

Once a file on your disk meets or exceeds this cutoff ranking, Sonarr will stop looking for upgrades to your existing file.

Well in my case i have profile for SDTV and 720p with cutoff SDTV and lets say it downloads 720p episode because SDTV is not available yet, when after an hour found SDTV it will download it and replace 720p, so i’m sure sonarr downgrades to lower quality.
You are saying that this should not be happen ?

It depends what you set the cutoff to and the order of the qualities.

If SDTV is above HDTV-720p and the cutoff is HDTV-720p it won’t “downgrade”, but if the cutoff is SDTV then it will. I use downgrade because you’re setting a lower quality above a higher quality and telling Sonarr its a quality you prefer more.

1 Like

yes but in that case if both SDTV and 720p is available in the indexer what it will download first ? i want only SDTV episodes and download 720p only if on the first search SDTV is not available. i need No upgrade, no downgrade

Drag SDTV above 720p.
Set 720p as the cutoff.
Done.

  • First search returns SDTV and 720p? sonarr will grab SDTV because it meets the cutoff quality, and it is higher in the list than 720p so more desirable.
  • First search returns only 720p? sonarr will grab it because it meets the cutoff quality.
  • First search returns only SDTV? sonarr will grab it because it exceeds the cutoff quality.

In all 3 cases, when something new is found on RSS or search when you already have a file, it will not be downloaded because you already have a file that meets or exceeds the cutoff.

1 Like

ah i see my mistake. i was setting as cutoff SDTV. I will give it a try. Thanks @Thirrian

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