few pre-release fixes

This commit is contained in:
Timothy Baldridge 2021-01-09 07:14:01 -07:00
parent 2ce0484680
commit b272f9edcd
3 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,7 @@
* Fixed Regression with CloudFront IPS4 sites not requesting logins before installation
* Fixed regression that caused us to spam the Nexus with verify calls
* Further fixes for IPS4 sites
* Optimized download folder hashing by only hashing files that match a specific size (thanks Unnoen!)
#### Version - 2.3.6.2 - 12/31/2020
* HOTFIX: Also apply the IPS4 changes to LL Meta lookups

View File

@ -217,7 +217,10 @@ namespace Wabbajack.Lib.Downloaders
{
try
{
var client = DownloadDispatcher.GetInstance<NexusDownloader>().Client!;
var nclient = DownloadDispatcher.GetInstance<NexusDownloader>();
await nclient.Prepare();
var client = nclient.Client!;
var modInfo = await client.GetModInfo(Game, ModID);
if (!modInfo.available) return false;
var modFiles = await client.GetModFiles(Game, ModID);

View File

@ -79,6 +79,7 @@ namespace Wabbajack.Server.Services
catch (Exception ex)
{
_logger.LogError(ex, $"During Validation of {archive.Hash} {archive.State.PrimaryKeyString}");
Utils.Log($"Exception in validation of {archive.Hash} {archive.State.PrimaryKeyString} " + ex);
return (archive, ArchiveStatus.InValid);
}
finally
@ -316,6 +317,8 @@ namespace Wabbajack.Server.Services
return (archive, ArchiveStatus.Valid);
case ModDBDownloader.State _:
return (archive, ArchiveStatus.Valid);
case GameFileSourceDownloader.State _:
return (archive, ArchiveStatus.Valid);
case MediaFireDownloader.State _:
return (archive, ArchiveStatus.Valid);
default:
@ -363,8 +366,9 @@ namespace Wabbajack.Server.Services
{
mod = await nexusClient.GetModInfo(ns.Game, ns.ModID, false);
}
catch
catch (Exception ex)
{
Utils.Log("Exception in Nexus Validation " + ex);
mod = new ModInfo
{
mod_id = ns.ModID.ToString(),