From 0703747702ccbb49ccb5ca6b0776a543814edc71 Mon Sep 17 00:00:00 2001 From: erri120 Date: Sat, 2 May 2020 15:39:07 +0200 Subject: [PATCH] Added manual validation for nexus files if cache fails --- Wabbajack.Lib/Downloaders/NexusDownloader.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Wabbajack.Lib/Downloaders/NexusDownloader.cs b/Wabbajack.Lib/Downloaders/NexusDownloader.cs index 632af6cc..6c35334c 100644 --- a/Wabbajack.Lib/Downloaders/NexusDownloader.cs +++ b/Wabbajack.Lib/Downloaders/NexusDownloader.cs @@ -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)