diff --git a/src/Jackett/Indexers/BB.cs b/src/Jackett/Indexers/BB.cs index 488d8285c..8f32a02ff 100644 --- a/src/Jackett/Indexers/BB.cs +++ b/src/Jackett/Indexers/BB.cs @@ -15,7 +15,7 @@ using System.Threading.Tasks; using System.Web; using Jackett.Models.IndexerConfig; using System.Collections.Specialized; - + namespace Jackett.Indexers { // To comply with the rules for this tracker, only the acronym is used and no publicly displayed URLs to the site. @@ -164,7 +164,7 @@ namespace Jackett.Indexers var title = qRow.Find("td:nth-child(2)"); title.Find("span, strong, div, br").Remove(); - release.Title = title.Text().Replace(" - ]", "]"); + release.Title = ParseUtil.NormalizeMultiSpaces(title.Text().Replace(" - ]", "]")); releases.Add(release); } diff --git a/src/Jackett/Utils/ParseUtil.cs b/src/Jackett/Utils/ParseUtil.cs index 2bdbed60a..b152103d8 100644 --- a/src/Jackett/Utils/ParseUtil.cs +++ b/src/Jackett/Utils/ParseUtil.cs @@ -15,6 +15,11 @@ namespace Jackett.Utils return s.Trim(); } + public static string NormalizeMultiSpaces(string s) + { + return new Regex(@"\s+").Replace(NormalizeSpace(s), " "); ; + } + public static string NormalizeNumber(string s) { var normalized = NormalizeSpace(s);