I changed my "matching" a little and removed case and spaces. You may not care about the previous version but the initial version just removed punctuation.
So here is the new version
foreach (XElement wsgfGame in noMatch)
{
var name = wsgfGame.Element("Title").Value.ToLower();
name = new string(name.Where(c => !char.IsPunctuation(c)).ToArray());
name = name.Replace(" ", "");
if (steam.Descendants("name").Select(s => new string(s.Value.ToLower().Where(c => !char.IsPunctuation(c)).ToArray()).Replace(" ","")).Contains(name))
{
var theMatch = steam.Descendants("app").First(s => new string(s.Element("name").Value.ToLower().Where(c => !char.IsPunctuation(c)).ToArray()).Replace(" ","") == name);
reMatch.Add(wsgfGame, theMatch);
}
}
By the title of this blog guess what, I got 63 new matches.....Time to get these put in to WSGF!
