Integrates history scores into download decision-making by comparing the custom format score of existing history entries with that of incoming releases. Releases are rejected if a higher score already exists in the history, ensuring better quality selections.
Database Migration
NO
Description
The goal is to check the history for the latest entry to determine if a better version already exists.
Let's discuss any necessary changes or potential concerns regarding this pull request here.
#### Attention
I have never touched the Sonarr code before, so please carefully review this for any disadvantages or issues I may have overlooked.
Technically, this method works. I have tested it locally, and I am currently using this version.
Maybe this should be behind a checkbox?
This is parallel to https://github.com/Radarr/Radarr/pull/10924
#### Issues Fixed or Closed by this PR
#5298
returnDownloadSpecDecision.Reject(DownloadRejectionReason.HistoryUpgradesNotAllowed,"{0} grab event in history and Quality Profile '{1}' does not allow upgrades",rejectionSubject,qualityProfile.Name);
returnDownloadSpecDecision.Reject(DownloadRejectionReason.HistoryCustomFormatScore,"Quality Profile '{0}' has a higher Custom Format score than the report: {1}",qualityProfile.Name,subject.CustomFormatScore);