mirror of https://github.com/Jackett/Jackett
alpharatio: disable season only search. Resolves #8244
This commit is contained in:
parent
ebb57e54d1
commit
ea1ed86d7a
|
@ -58,7 +58,15 @@ namespace Jackett.Common.Indexers
|
||||||
AddCategoryMapping(30, TorznabCatType.Other, "Misc");
|
AddCategoryMapping(30, TorznabCatType.Other, "Misc");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Alpharatio can't handle dots in the searchstr
|
protected override string GetSearchTerm(TorznabQuery query)
|
||||||
protected override string GetSearchTerm(TorznabQuery query) => query.GetQueryString().Replace(".", " ");
|
{
|
||||||
|
// Ignore season search without episode. Alpharatio doesn't support it.
|
||||||
|
var searchTerm = string.IsNullOrWhiteSpace(query.Episode)
|
||||||
|
? query.SanitizedSearchTerm
|
||||||
|
: query.GetQueryString();
|
||||||
|
|
||||||
|
// Alpharatio can't handle dots in the searchstr
|
||||||
|
return searchTerm.Replace(".", " ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue