mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fix for not implemented exception in moddb downloader
This commit is contained in:
parent
8ede69a14b
commit
704bfeb352
@ -14,6 +14,12 @@ namespace Wabbajack.Test
|
||||
[TestClass]
|
||||
public class DownloaderTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestAllPrepares()
|
||||
{
|
||||
DownloadDispatcher.Downloaders.Do(d => d.Prepare());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void MegaDownload()
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ namespace Wabbajack.Downloaders
|
||||
{
|
||||
public static class DownloadDispatcher
|
||||
{
|
||||
private static readonly List<IDownloader> Downloaders = new List<IDownloader>()
|
||||
public static readonly List<IDownloader> Downloaders = new List<IDownloader>()
|
||||
{
|
||||
new MegaDownloader(),
|
||||
new DropboxDownloader(),
|
||||
|
@ -29,7 +29,6 @@ namespace Wabbajack.Downloaders
|
||||
|
||||
public void Prepare()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public class State : AbstractDownloadState
|
||||
|
@ -141,7 +141,7 @@ namespace Wabbajack.NexusApi
|
||||
dailyRemaining = int.Parse(response.Headers.GetValues("x-rl-daily-remaining").First());
|
||||
hourlyRemaining = int.Parse(response.Headers.GetValues("x-rl-hourly-remaining").First());
|
||||
}
|
||||
catch (InvalidDataException ex)
|
||||
catch (InvalidDataException)
|
||||
{
|
||||
Utils.Log("Couldn't find x-rl-*-remaining headers in Nexus response. Ignoring");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user