AlphaRatio: remove dots from search string

This commit is contained in:
kaso17
2018-04-17 11:03:40 +02:00
parent 82b203c9c3
commit 427428d09b
2 changed files with 12 additions and 1 deletions

View File

@@ -84,10 +84,16 @@ namespace Jackett.Common.Indexers.Abstract
return IndexerConfigurationStatus.RequiresTesting; return IndexerConfigurationStatus.RequiresTesting;
} }
// hook to adjust the search term
protected virtual string GetSearchTerm(TorznabQuery query)
{
return query.GetQueryString();
}
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query) protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
{ {
var releases = new List<ReleaseInfo>(); var releases = new List<ReleaseInfo>();
var searchString = query.GetQueryString(); var searchString = GetSearchTerm(query);
var searchUrl = APIUrl; var searchUrl = APIUrl;
var queryCollection = new NameValueCollection(); var queryCollection = new NameValueCollection();

View File

@@ -47,5 +47,10 @@ namespace Jackett.Common.Indexers
AddCategoryMapping(23, TorznabCatType.AudioOther, "Music"); AddCategoryMapping(23, TorznabCatType.AudioOther, "Music");
AddCategoryMapping(24, TorznabCatType.Other, "Misc"); AddCategoryMapping(24, TorznabCatType.Other, "Misc");
} }
protected override string GetSearchTerm(TorznabQuery query)
{
return query.GetQueryString().Replace(".", " "); // Alpharatio can't handle dots in the searchstr
}
} }
} }