Corrected order of constructor (GlobalBase clone)
This commit is contained in:
parent
181942153b
commit
6e1a0ab06c
@ -20,7 +20,7 @@ internal class DownloadClient : GlobalBase
|
|||||||
private readonly Dictionary<byte, DateTime> _lastExecutedRateLimit;
|
private readonly Dictionary<byte, DateTime> _lastExecutedRateLimit;
|
||||||
private readonly Dictionary<byte, TimeSpan> _rateLimit;
|
private readonly Dictionary<byte, TimeSpan> _rateLimit;
|
||||||
|
|
||||||
public DownloadClient(Dictionary<byte, int> rateLimitRequestsPerMinute, GlobalBase clone) : base(clone)
|
public DownloadClient(GlobalBase clone, Dictionary<byte, int> rateLimitRequestsPerMinute) : base(clone)
|
||||||
{
|
{
|
||||||
_lastExecutedRateLimit = new();
|
_lastExecutedRateLimit = new();
|
||||||
_rateLimit = new();
|
_rateLimit = new();
|
||||||
|
@ -21,14 +21,14 @@ public class MangaDex : MangaConnector
|
|||||||
public MangaDex(GlobalBase clone) : base(clone)
|
public MangaDex(GlobalBase clone) : base(clone)
|
||||||
{
|
{
|
||||||
name = "MangaDex";
|
name = "MangaDex";
|
||||||
this.downloadClient = new DownloadClient(new Dictionary<byte, int>()
|
this.downloadClient = new DownloadClient(clone, new Dictionary<byte, int>()
|
||||||
{
|
{
|
||||||
{(byte)RequestType.Manga, 250},
|
{(byte)RequestType.Manga, 250},
|
||||||
{(byte)RequestType.Feed, 250},
|
{(byte)RequestType.Feed, 250},
|
||||||
{(byte)RequestType.AtHomeServer, 40},
|
{(byte)RequestType.AtHomeServer, 40},
|
||||||
{(byte)RequestType.CoverUrl, 250},
|
{(byte)RequestType.CoverUrl, 250},
|
||||||
{(byte)RequestType.Author, 250}
|
{(byte)RequestType.Author, 250}
|
||||||
}, clone);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Publication[] GetPublications(string publicationTitle = "")
|
public override Publication[] GetPublications(string publicationTitle = "")
|
||||||
|
@ -13,10 +13,10 @@ public class MangaKatana : MangaConnector
|
|||||||
public MangaKatana(GlobalBase clone) : base(clone)
|
public MangaKatana(GlobalBase clone) : base(clone)
|
||||||
{
|
{
|
||||||
this.name = "MangaKatana";
|
this.name = "MangaKatana";
|
||||||
this.downloadClient = new DownloadClient(new Dictionary<byte, int>()
|
this.downloadClient = new DownloadClient(clone, new Dictionary<byte, int>()
|
||||||
{
|
{
|
||||||
{1, 60}
|
{1, 60}
|
||||||
}, clone);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Publication[] GetPublications(string publicationTitle = "")
|
public override Publication[] GetPublications(string publicationTitle = "")
|
||||||
|
@ -13,10 +13,10 @@ public class Manganato : MangaConnector
|
|||||||
public Manganato(GlobalBase clone) : base(clone)
|
public Manganato(GlobalBase clone) : base(clone)
|
||||||
{
|
{
|
||||||
this.name = "Manganato";
|
this.name = "Manganato";
|
||||||
this.downloadClient = new DownloadClient(new Dictionary<byte, int>()
|
this.downloadClient = new DownloadClient(clone, new Dictionary<byte, int>()
|
||||||
{
|
{
|
||||||
{1, 60}
|
{1, 60}
|
||||||
}, clone);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Publication[] GetPublications(string publicationTitle = "")
|
public override Publication[] GetPublications(string publicationTitle = "")
|
||||||
|
@ -18,10 +18,10 @@ public class Mangasee : MangaConnector
|
|||||||
public Mangasee(GlobalBase clone) : base(clone)
|
public Mangasee(GlobalBase clone) : base(clone)
|
||||||
{
|
{
|
||||||
this.name = "Mangasee";
|
this.name = "Mangasee";
|
||||||
this.downloadClient = new DownloadClient(new Dictionary<byte, int>()
|
this.downloadClient = new DownloadClient(clone, new Dictionary<byte, int>()
|
||||||
{
|
{
|
||||||
{ 1, 60 }
|
{ 1, 60 }
|
||||||
}, clone);
|
});
|
||||||
|
|
||||||
Task d = new Task(DownloadBrowser);
|
Task d = new Task(DownloadBrowser);
|
||||||
d.Start();
|
d.Start();
|
||||||
|
Loading…
Reference in New Issue
Block a user