URLEncode the string for searching (#1055)

Closes #818 again
This commit is contained in:
Mihai Blaga 2017-03-07 17:08:14 +02:00 committed by Devin Buhl
parent b71031f6d3
commit fb1d13bc58
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace NzbDrone.Core.Indexers.Newznab
}
else
{
var searchTitle = Parser.Parser.ReplaceGermanUmlauts(Parser.Parser.NormalizeTitle(searchCriteria.Movie.Title));
var searchTitle = System.Web.HttpUtility.UrlPathEncode(Parser.Parser.ReplaceGermanUmlauts(Parser.Parser.NormalizeTitle(searchCriteria.Movie.Title)));
pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "search", $"&q={searchTitle}%20{searchCriteria.Movie.Year}"));
}