Added manual validation for nexus files if cache fails

This commit is contained in:
erri120 2020-05-02 15:39:07 +02:00
parent c96665cde3
commit 0703747702
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

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)