diff --git a/MPF.CLI/MPF.CLI.csproj b/MPF.CLI/MPF.CLI.csproj
index f93a5e4a..70175cea 100644
--- a/MPF.CLI/MPF.CLI.csproj
+++ b/MPF.CLI/MPF.CLI.csproj
@@ -44,7 +44,7 @@
-
+
\ No newline at end of file
diff --git a/MPF.Check/MPF.Check.csproj b/MPF.Check/MPF.Check.csproj
index 7b395894..35bfb213 100644
--- a/MPF.Check/MPF.Check.csproj
+++ b/MPF.Check/MPF.Check.csproj
@@ -44,7 +44,7 @@
-
+
\ No newline at end of file
diff --git a/MPF.ExecutionContexts.Test/MPF.ExecutionContexts.Test.csproj b/MPF.ExecutionContexts.Test/MPF.ExecutionContexts.Test.csproj
index 4a455129..a5927b2c 100644
--- a/MPF.ExecutionContexts.Test/MPF.ExecutionContexts.Test.csproj
+++ b/MPF.ExecutionContexts.Test/MPF.ExecutionContexts.Test.csproj
@@ -17,7 +17,7 @@
-
+
diff --git a/MPF.ExecutionContexts/MPF.ExecutionContexts.csproj b/MPF.ExecutionContexts/MPF.ExecutionContexts.csproj
index a12d096e..21fe997d 100644
--- a/MPF.ExecutionContexts/MPF.ExecutionContexts.csproj
+++ b/MPF.ExecutionContexts/MPF.ExecutionContexts.csproj
@@ -32,7 +32,7 @@
-
+
\ No newline at end of file
diff --git a/MPF.Frontend.Test/MPF.Frontend.Test.csproj b/MPF.Frontend.Test/MPF.Frontend.Test.csproj
index 6f3d84c4..257d8d88 100644
--- a/MPF.Frontend.Test/MPF.Frontend.Test.csproj
+++ b/MPF.Frontend.Test/MPF.Frontend.Test.csproj
@@ -17,7 +17,7 @@
-
+
diff --git a/MPF.Frontend/MPF.Frontend.csproj b/MPF.Frontend/MPF.Frontend.csproj
index a3ca6156..47706e35 100644
--- a/MPF.Frontend/MPF.Frontend.csproj
+++ b/MPF.Frontend/MPF.Frontend.csproj
@@ -38,7 +38,7 @@
-
+
diff --git a/MPF.Frontend/Tools/SubmissionGenerator.cs b/MPF.Frontend/Tools/SubmissionGenerator.cs
index 67894d32..d03a8293 100644
--- a/MPF.Frontend/Tools/SubmissionGenerator.cs
+++ b/MPF.Frontend/Tools/SubmissionGenerator.cs
@@ -266,12 +266,17 @@ namespace MPF.Frontend.Tools
}
var foundIds = await Validator.ValidateSingleTrack(wc, info, sha1);
- if (foundIds is not null && foundIds.Count == 1)
- resultProgress?.Report(ResultEventArgs.Success($"Single match found for {sha1}"));
- else if (foundIds is not null && foundIds.Count != 1)
- resultProgress?.Report(ResultEventArgs.Success($"Multiple matches found for {sha1}"));
- else
+ if (foundIds is null)
+ {
+ resultProgress?.Report(ResultEventArgs.Failure("Error accessing redump.org"));
+ return false;
+ }
+ else if (foundIds.Count == 0)
resultProgress?.Report(ResultEventArgs.Failure($"No matches found for {sha1}"));
+ else if (foundIds.Count == 1)
+ resultProgress?.Report(ResultEventArgs.Success($"Single match found for {sha1}"));
+ else
+ resultProgress?.Report(ResultEventArgs.Success($"Multiple matches found for {sha1}"));
// Add the found IDs to the map
foundIdSets.Add(foundIds?.ToArray() ?? []);
@@ -306,12 +311,14 @@ namespace MPF.Frontend.Tools
{
string sha1 = info.CommonDiscInfo.CommentsSpecialFields[SiteCode.UniversalHash];
var foundIds = await Validator.ValidateUniversalHash(wc, info);
- if (foundIds is not null && foundIds.Count == 1)
- resultProgress?.Report(ResultEventArgs.Success($"Single match found for universal hash {sha1}"));
- else if (foundIds is not null && foundIds.Count != 1)
- resultProgress?.Report(ResultEventArgs.Success($"Multiple matches found for universal hash {sha1}"));
- else
+ if (foundIds is null)
+ resultProgress?.Report(ResultEventArgs.Failure("Error accessing redump.org"));
+ else if (foundIds.Count == 0)
resultProgress?.Report(ResultEventArgs.Failure($"No matches found for universal hash {sha1}"));
+ else if (foundIds.Count == 1)
+ resultProgress?.Report(ResultEventArgs.Success($"Single match found for universal hash {sha1}"));
+ else
+ resultProgress?.Report(ResultEventArgs.Success($"Multiple matches found for universal hash {sha1}"));
// Ensure that the hash is found
allFound = foundIds is not null && foundIds.Count == 1;
diff --git a/MPF.Processors.Test/MPF.Processors.Test.csproj b/MPF.Processors.Test/MPF.Processors.Test.csproj
index 03cd9aae..98394161 100644
--- a/MPF.Processors.Test/MPF.Processors.Test.csproj
+++ b/MPF.Processors.Test/MPF.Processors.Test.csproj
@@ -27,7 +27,7 @@
-
+
diff --git a/MPF.Processors/MPF.Processors.csproj b/MPF.Processors/MPF.Processors.csproj
index ab4d0c7d..3f505fad 100644
--- a/MPF.Processors/MPF.Processors.csproj
+++ b/MPF.Processors/MPF.Processors.csproj
@@ -35,7 +35,7 @@
-
+
diff --git a/MPF.UI/MPF.UI.csproj b/MPF.UI/MPF.UI.csproj
index 44082605..2d53ff50 100644
--- a/MPF.UI/MPF.UI.csproj
+++ b/MPF.UI/MPF.UI.csproj
@@ -70,7 +70,7 @@
-
+