From 09239c945939f763451a8f58332a54407964d934 Mon Sep 17 00:00:00 2001 From: stoj Date: Tue, 5 Sep 2023 20:17:28 +0800 Subject: [PATCH] feeder: fixed feed to report some tables as original of manufactured --- ClrVpin.sln.DotSettings | 2 ++ ClrVpin/Feeder/FeederFix.cs | 8 ++++++++ ClrVpin/Feeder/FeederUtils.cs | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ClrVpin.sln.DotSettings b/ClrVpin.sln.DotSettings index a7d9145..2a8b55c 100644 --- a/ClrVpin.sln.DotSettings +++ b/ClrVpin.sln.DotSettings @@ -274,6 +274,7 @@ True True False + True True True True @@ -293,6 +294,7 @@ True True True + True True True True diff --git a/ClrVpin/Feeder/FeederFix.cs b/ClrVpin/Feeder/FeederFix.cs index 0319cba..acf5e53 100644 --- a/ClrVpin/Feeder/FeederFix.cs +++ b/ClrVpin/Feeder/FeederFix.cs @@ -388,6 +388,14 @@ private static void FixNamedGames(OnlineGame onlineGame) case "Rambo (Original 2021)": FixTableType(onlineGame, TableType.SolidState); break; + case "The Avengers Infinity Quest (Stern 2020)": + case "Nightmare (Digital Illusions 1992)": + case "Night of the Living Dead (Pininventions 2014)": + case "Batman 66 (Stern 2016)": + case "Mortal Kombat II (Midway 1992)": + // alternatively, GameDerived.CheckIsOriginal() can be overriden.. but better to fix the issue at the source where possible + WrongManufacturerYear(onlineGame, "Original"); + break; } } diff --git a/ClrVpin/Feeder/FeederUtils.cs b/ClrVpin/Feeder/FeederUtils.cs index 8d991e2..4300513 100644 --- a/ClrVpin/Feeder/FeederUtils.cs +++ b/ClrVpin/Feeder/FeederUtils.cs @@ -106,7 +106,7 @@ private static void MatchOnlineToLocal(IList localGames, ICollection< var isOriginal = existingMatchOnlineGame.IsOriginal || localMatchedGame.Derived.IsOriginal || fuzzyNameDetails.IsOriginal; var existingFullName = $"{existingMatchOnlineGame.Name} ({existingMatchOnlineGame.Manufacturer} {existingMatchOnlineGame.Year})"; - var fuzzyLog = $"duplicate fuzzy match: replaceExisting={replaceExistingMatch}, isOriginal={isOriginal}\n" + + var fuzzyLog = $"Duplicate fuzzy match: replaceExisting={replaceExistingMatch}, isOriginal={isOriginal}\n" + $"- db record: {Fuzzy.LogGameInfo(localMatchedGame.Game.Name, localMatchedGame.Game.Description, localMatchedGame.Game.Manufacturer, localMatchedGame.Game.Year)}\n" + $"- existing feed match: score={$"{existingMatchOnlineGame.Hit.Score},",-4} {Fuzzy.LogGameInfo(existingFullName, null, existingMatchOnlineGame.Manufacturer, existingMatchOnlineGame.YearString)}\n" + $"- new feed match: score={$"{score},",-4} {Fuzzy.LogGameInfo(fuzzyNameDetails.ActualName, null, fuzzyNameDetails.Manufacturer, fuzzyNameDetails.Year?.ToString())}";