mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix broken interaction with http-downloader
This commit is contained in:
parent
1f0591d05e
commit
cb667ed4f8
@ -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;
|
||||
|
@ -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; }
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user