Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
alpharatio: Added MR and MST (#9690) resolves #9690
  • Loading branch information
seeyabye committed Sep 29, 2020
1 parent 7032b1c commit 5b2bb74
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Jackett.Common/Indexers/AlphaRatio.cs
@@ -1,4 +1,6 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Jackett.Common.Indexers.Abstract;
using Jackett.Common.Models;
using Jackett.Common.Services.Interfaces;
Expand Down Expand Up @@ -71,5 +73,16 @@ protected override string GetSearchTerm(TorznabQuery query)
// Alpharatio can't handle dots in the searchstr
return searchTerm.Replace(".", " ");
}

protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
{
var releases = await base.PerformQuery(query);
foreach (var release in releases)
{
release.MinimumRatio = 1;
release.MinimumSeedTime = 259200;
}
return releases;
}
}
}

1 comment on commit 5b2bb74

@garfield69
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolves #9689

Please sign in to comment.