Merge pull request #785 from erri120/manual-validation-nexus

Added manual validation for nexus files if cache fails
This commit is contained in:
Timothy Baldridge 2020-05-02 14:18:30 -06:00 committed by GitHub
commit c58f8f0b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,6 +196,16 @@ namespace Wabbajack.Lib.Downloaders
var found = modFiles.files
.FirstOrDefault(file => file.file_id == FileID && file.category_name != null);
if (found != null)
return true;
Utils.Log($"Could not validate {URL} with cache, validating manually");
modFiles = await client.GetModFiles(Game, ModID, false);
found = modFiles.files
.FirstOrDefault(file => file.file_id == FileID && file.category_name != null);
return found != null;
}
catch (Exception ex)