mirror of https://github.com/Jackett/Jackett
Potato Feed: use InvariantCulture title comparison
This commit is contained in:
parent
fa91848126
commit
3f8c87ad7f
|
@ -1,6 +1,7 @@
|
|||
using Jackett.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
@ -60,7 +61,7 @@ namespace Jackett.Utils
|
|||
continue;
|
||||
|
||||
// Match on title
|
||||
if (CleanTitle(result.Title).Contains(name))
|
||||
if (CultureInfo.InvariantCulture.CompareInfo.IndexOf(CleanTitle(result.Title), name, CompareOptions.IgnoreNonSpace) >= 0)
|
||||
{
|
||||
// Match on year
|
||||
var titleYear = GetYearFromTitle(result.Title);
|
||||
|
|
Loading…
Reference in New Issue