mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #785 from erri120/manual-validation-nexus
Added manual validation for nexus files if cache fails
This commit is contained in:
commit
c58f8f0b39
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user