Compare commits

..

2 Commits

Author SHA1 Message Date
cf6fc3b8f6 Update readme HtmlAgilityPack 2023-06-06 21:27:12 +02:00
f5141d0f8e removed unnecessary async 2023-06-06 21:27:02 +02:00
2 changed files with 5 additions and 1 deletions

View File

@ -74,6 +74,7 @@ That is why I wanted to create my own project, in a language I understand, and t
- .NET-Core - .NET-Core
- Newtonsoft.JSON - Newtonsoft.JSON
- [PuppeteerSharp](https://www.puppeteersharp.com/) - [PuppeteerSharp](https://www.puppeteersharp.com/)
- [Html Agility Pack (HAP)](https://html-agility-pack.net/)
- Love <3 Blåhaj 🦈 - Love <3 Blåhaj 🦈
<p align="right">(<a href="#readme-top">back to top</a>)</p> <p align="right">(<a href="#readme-top">back to top</a>)</p>

View File

@ -37,7 +37,7 @@ public class Mangasee : Connector
{ {
logger?.WriteLine(this.GetType().ToString(), "Downloading headless browser"); logger?.WriteLine(this.GetType().ToString(), "Downloading headless browser");
DateTime last = DateTime.Now.Subtract(TimeSpan.FromSeconds(5)); DateTime last = DateTime.Now.Subtract(TimeSpan.FromSeconds(5));
browserFetcher.DownloadProgressChanged += async (sender, args) => browserFetcher.DownloadProgressChanged += (sender, args) =>
{ {
double currentBytes = Convert.ToDouble(args.BytesReceived) / Convert.ToDouble(args.TotalBytesToReceive); double currentBytes = Convert.ToDouble(args.BytesReceived) / Convert.ToDouble(args.TotalBytesToReceive);
if (args.TotalBytesToReceive == args.BytesReceived) if (args.TotalBytesToReceive == args.BytesReceived)
@ -174,11 +174,14 @@ public class Mangasee : Connector
year, originalLanguage, status, publicationId); year, originalLanguage, status, publicationId);
} }
// ReSharper disable once ClassNeverInstantiated.Local Will be instantiated during deserialization
private class SearchResultItem private class SearchResultItem
{ {
#pragma warning disable CS8618 //Will always be set
public string i { get; set; } public string i { get; set; }
public string s { get; set; } public string s { get; set; }
public string[] a { get; set; } public string[] a { get; set; }
#pragma warning restore CS8618
} }
public override Chapter[] GetChapters(Publication publication, string language = "") public override Chapter[] GetChapters(Publication publication, string language = "")