URLEncode the string for searching (#1055)

Closes #818 again
Mihai Blaga 8 years ago committed by Devin Buhl
parent b71031f6d3
commit fb1d13bc58

@ -58,7 +58,7 @@ namespace NzbDrone.Core.Indexers.Newznab
} }
else 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}")); pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "search", $"&q={searchTitle}%20{searchCriteria.Movie.Year}"));
} }

Loading…
Cancel
Save