mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Potato Feed: use InvariantCulture title comparison
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user