2
0

Compare commits

...

2 Commits

Author SHA1 Message Date
bec3ac52a9 Merge branch 'refs/heads/cuttingedge-merge-ServerV2' into cuttingedge 2024-08-20 20:53:09 +02:00
ea37e81ece Fix last commit 2024-08-20 20:53:03 +02:00
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using HtmlAgilityPack; using HtmlAgilityPack;
using PuppeteerSharp; using PuppeteerSharp;
using PuppeteerSharp.Input;
namespace Tranga.MangaConnectors; namespace Tranga.MangaConnectors;
@ -12,7 +11,7 @@ internal class ChromiumDownloadClient : DownloadClient
private IBrowser browser { get; set; } private IBrowser browser { get; set; }
private const string ChromiumVersion = "1154303"; private const string ChromiumVersion = "1154303";
private const int StartTimeoutMs = 30000; private const int StartTimeoutMs = 30000;
private HttpDownloadClient _httpDownloadClient; private readonly HttpDownloadClient _httpDownloadClient;
private async Task<IBrowser> DownloadBrowser() private async Task<IBrowser> DownloadBrowser()
{ {

View File

@ -16,7 +16,7 @@ internal class HttpDownloadClient : DownloadClient
Client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", settings.userAgent); Client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", settings.userAgent);
} }
protected override RequestResult MakeRequestInternal(string url, string? referrer = null, string? clickButton = null) internal override RequestResult MakeRequestInternal(string url, string? referrer = null, string? clickButton = null)
{ {
if(clickButton is not null) if(clickButton is not null)
Log("Can not click button on static site."); Log("Can not click button on static site.");