mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Small downloader fixes
This commit is contained in:
parent
d81b9026d4
commit
d854845d17
@ -5,6 +5,8 @@
|
||||
* Origin is now supported as a game source
|
||||
* Basic (mostly untested) support for Dragon Age : Origins
|
||||
* Replace RocksDB with SQLite should result in less process contention when running the UI and the CLI at the same time
|
||||
* Fixed Regression with CloudFront IPS4 sites not requesting logins before installation
|
||||
* Fixed regression that caused us to spam the Nexus with verify calls
|
||||
|
||||
#### Version - 2.3.6.2 - 12/31/2020
|
||||
* HOTFIX: Also apply the IPS4 changes to LL Meta lookups
|
||||
|
@ -92,7 +92,7 @@ namespace Wabbajack.Lib.Downloaders
|
||||
public async Task<Http.Client> GetAuthedClient()
|
||||
{
|
||||
Helpers.Cookie[] cookies;
|
||||
if (Consts.IsServer)
|
||||
if (Consts.IsServer || IsCloudFlareProtected)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ namespace Wabbajack.Lib.Downloaders
|
||||
};
|
||||
}
|
||||
|
||||
var client = await NexusApiClient.Get();
|
||||
var client = DownloadDispatcher.GetInstance<NexusDownloader>().Client ?? await NexusApiClient.Get();
|
||||
ModInfo info;
|
||||
try
|
||||
{
|
||||
@ -198,8 +198,7 @@ namespace Wabbajack.Lib.Downloaders
|
||||
string url;
|
||||
try
|
||||
{
|
||||
var client = await NexusApiClient.Get();
|
||||
url = await client.GetNexusDownloadLink(this);
|
||||
url = await DownloadDispatcher.GetInstance<NexusDownloader>().Client!.GetNexusDownloadLink(this);
|
||||
}
|
||||
catch (NexusAPIQuotaExceeded ex)
|
||||
{
|
||||
@ -218,7 +217,7 @@ namespace Wabbajack.Lib.Downloaders
|
||||
{
|
||||
try
|
||||
{
|
||||
var client = await NexusApiClient.Get();
|
||||
var client = DownloadDispatcher.GetInstance<NexusDownloader>().Client!;
|
||||
var modInfo = await client.GetModInfo(Game, ModID);
|
||||
if (!modInfo.available) return false;
|
||||
var modFiles = await client.GetModFiles(Game, ModID);
|
||||
|
@ -34,9 +34,7 @@ namespace Wabbajack.Lib.NexusApi
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_userStatus == null)
|
||||
_userStatus = GetUserStatus();
|
||||
return _userStatus;
|
||||
return _userStatus ??= GetUserStatus();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user