Fixed: (HDBits) Strip non-word chars from search query

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
pull/1979/head
Bogdan 12 months ago
parent c3e40c0564
commit ac97952fd7

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
@ -26,7 +27,7 @@ namespace NzbDrone.Core.Indexers.Definitions.HDBits
if (imdbId == 0 && searchCriteria.SearchTerm.IsNotNullOrWhiteSpace())
{
query.Search = searchCriteria.SanitizedSearchTerm;
query.Search = Regex.Replace(searchCriteria.SanitizedSearchTerm, "[\\W]+", " ").Trim();
}
if (imdbId != 0)

Loading…
Cancel
Save