subplease: fix season search (#15171)

This commit is contained in:
Florent Delrieu 2024-03-20 23:14:15 +01:00 committed by GitHub
parent 8ab9553e3c
commit 96c9c09975
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -108,6 +108,13 @@ namespace Jackett.Common.Indexers
searchTerm = searchTerm.Replace(resMatch.Value, string.Empty);
}
// Only include season > 1 in searchTerm, format as S2 rather than S02
if (query.Season != 0)
{
searchTerm = query.Season == 1 ? searchTerm : searchTerm + $" S{query.Season}";
query.Season = 0;
}
var queryParameters = new NameValueCollection
{
{ "f", "search" },