mirror of https://github.com/Jackett/Jackett
bB: normalize spaces in title
This commit is contained in:
parent
1050157546
commit
b4fafe2845
|
@ -164,7 +164,7 @@ namespace Jackett.Indexers
|
||||||
|
|
||||||
var title = qRow.Find("td:nth-child(2)");
|
var title = qRow.Find("td:nth-child(2)");
|
||||||
title.Find("span, strong, div, br").Remove();
|
title.Find("span, strong, div, br").Remove();
|
||||||
release.Title = title.Text().Replace(" - ]", "]");
|
release.Title = ParseUtil.NormalizeMultiSpaces(title.Text().Replace(" - ]", "]"));
|
||||||
|
|
||||||
releases.Add(release);
|
releases.Add(release);
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,11 @@ namespace Jackett.Utils
|
||||||
return s.Trim();
|
return s.Trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string NormalizeMultiSpaces(string s)
|
||||||
|
{
|
||||||
|
return new Regex(@"\s+").Replace(NormalizeSpace(s), " "); ;
|
||||||
|
}
|
||||||
|
|
||||||
public static string NormalizeNumber(string s)
|
public static string NormalizeNumber(string s)
|
||||||
{
|
{
|
||||||
var normalized = NormalizeSpace(s);
|
var normalized = NormalizeSpace(s);
|
||||||
|
|
Loading…
Reference in New Issue