Fix broken interaction with http-downloader

This commit is contained in:
Timothy Baldridge 2019-11-06 17:29:53 -07:00
parent 1f0591d05e
commit cb667ed4f8
3 changed files with 2 additions and 15 deletions

View File

@ -18,8 +18,8 @@ namespace Wabbajack.Lib.Downloaders
new ModDBDownloader(),
new NexusDownloader(),
new MediaFireDownloader(),
new HTTPDownloader(),
new ManualDownloader(),
new HTTPDownloader()
};
private static readonly Dictionary<Type, IDownloader> IndexedDownloaders;

View File

@ -15,7 +15,7 @@ using File = System.IO.File;
namespace Wabbajack.Lib.Downloaders
{
public class ManualDownloader : IUrlDownloader
public class ManualDownloader : IDownloader
{
private FileSystemWatcher _watcher;
private Subject<FileEvent> _fileEvents = new Subject<FileEvent>();
@ -72,14 +72,6 @@ namespace Wabbajack.Lib.Downloaders
{
}
public AbstractDownloadState GetDownloaderState(string url)
{
return new State
{
Url = url
};
}
public class State : AbstractDownloadState
{
public string Url { get; set; }

View File

@ -157,11 +157,6 @@ namespace Wabbajack.Test
Assert.IsNotNull(state);
var url_state = DownloadDispatcher.ResolveArchive("http://build.wabbajack.org/WABBAJACK_TEST_FILE.zip");
Assert.AreEqual("http://build.wabbajack.org/WABBAJACK_TEST_FILE.zip",
((ManualDownloader.State)url_state).Url);
var converted = state.ViaJSON();
Assert.IsTrue(converted.Verify());
var filename = Guid.NewGuid().ToString();