|
|
|
|
@@ -142,9 +142,9 @@ namespace SabreTools.RedumpLib
|
|
|
|
|
/// <param name="sha1">SHA-1 hash to check against</param>
|
|
|
|
|
/// <returns>True if the track was found, false otherwise; List of found values, if possible</returns>
|
|
|
|
|
#if NETFRAMEWORK
|
|
|
|
|
public async static Task<(bool, List<int>?, string?)> ValidateSingleTrack(RedumpWebClient wc, SubmissionInfo info, string sha1)
|
|
|
|
|
public async static Task<(bool, List<int>?, string?)> ValidateSingleTrack(RedumpWebClient wc, SubmissionInfo info, string? sha1)
|
|
|
|
|
#else
|
|
|
|
|
public async static Task<(bool, List<int>?, string?)> ValidateSingleTrack(RedumpHttpClient wc, SubmissionInfo info, string sha1)
|
|
|
|
|
public async static Task<(bool, List<int>?, string?)> ValidateSingleTrack(RedumpHttpClient wc, SubmissionInfo info, string? sha1)
|
|
|
|
|
#endif
|
|
|
|
|
{
|
|
|
|
|
// Get all matching IDs for the track
|
|
|
|
|
@@ -190,10 +190,10 @@ namespace SabreTools.RedumpLib
|
|
|
|
|
return (false, null, "Universal hash was missing");
|
|
|
|
|
|
|
|
|
|
// Format the universal hash for finding within the comments
|
|
|
|
|
universalHash = $"{universalHash.Substring(0, universalHash.Length - 1)}/comments/only";
|
|
|
|
|
string universalHashQuery = $"{universalHash.Substring(0, universalHash.Length - 1)}/comments/only";
|
|
|
|
|
|
|
|
|
|
// Get all matching IDs for the hash
|
|
|
|
|
var newIds = await ListSearchResults(wc, universalHash, filterForwardSlashes: false);
|
|
|
|
|
var newIds = await ListSearchResults(wc, universalHashQuery, filterForwardSlashes: false);
|
|
|
|
|
|
|
|
|
|
// If we got null back, there was an error
|
|
|
|
|
if (newIds == null)
|
|
|
|
|
|