orpheus: add MR

This commit is contained in:
Garfield69
2025-03-14 17:33:14 +13:00
parent 630c99626d
commit 596c672d74

View File

@@ -75,5 +75,16 @@ namespace Jackett.Common.Indexers.Definitions
{
return new Uri($"{SiteLink}ajax.php?action=download{(useTokens && canUseToken ? "&usetoken=1" : "")}&id={torrentId}");
}
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
{
var releases = await base.PerformQuery(query);
foreach (var release in releases)
{
// the site has a proportional ratio system calculated using (1) the total amount of data you've downloaded and (2) the total number of torrents you're seeding.
// So we are going to default the MR to the maximim ratio required to cover the whole range as we cannot calculate this for each user.
release.MinimumRatio = 0.6;
}
return releases;
}
}
}