From 7d0267fe61b356534e2ed760f0c1e167f2013272 Mon Sep 17 00:00:00 2001 From: JigSaw Date: Sun, 30 May 2021 13:08:43 +0200 Subject: [PATCH] xthor: fixed enhanced anime search string for api (#11834) --- src/Jackett.Common/Indexers/Xthor.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Indexers/Xthor.cs b/src/Jackett.Common/Indexers/Xthor.cs index dd86ca643..fdb3c9b72 100644 --- a/src/Jackett.Common/Indexers/Xthor.cs +++ b/src/Jackett.Common/Indexers/Xthor.cs @@ -309,9 +309,6 @@ namespace Jackett.Common.Indexers { var releases = new List(); var searchTerm = query.SanitizedSearchTerm + " " + query.GetEpisodeSearchString(); - searchTerm = searchTerm.Trim(); - searchTerm = searchTerm.ToLower(); - searchTerm = searchTerm.Replace(" ", "."); if (EnhancedAnimeSearch && query.HasSpecifiedCategories && (query.Categories.Contains(TorznabCatType.TVAnime.ID) || query.Categories.Contains(100032) || query.Categories.Contains(100101) || query.Categories.Contains(100110))) { @@ -319,6 +316,10 @@ namespace Jackett.Common.Indexers searchTerm = regex.Replace(searchTerm, " E$1"); } + searchTerm = searchTerm.Trim(); + searchTerm = searchTerm.ToLower(); + searchTerm = searchTerm.Replace(" ", "."); + // Multiple page support var nextPage = 1; var followingPages = true;