Compare commits
No commits in common. "bec3ac52a9efeb71782834da03d7bf05bf836124" and "6a20783d483434d7f5a16d755b5ef39cbe98004e" have entirely different histories.
bec3ac52a9
...
6a20783d48
@ -3,6 +3,7 @@ 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;
|
||||||
|
|
||||||
@ -11,7 +12,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 readonly HttpDownloadClient _httpDownloadClient;
|
private HttpDownloadClient _httpDownloadClient;
|
||||||
|
|
||||||
private async Task<IBrowser> DownloadBrowser()
|
private async Task<IBrowser> DownloadBrowser()
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@ internal class HttpDownloadClient : DownloadClient
|
|||||||
Client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", settings.userAgent);
|
Client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", settings.userAgent);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal override RequestResult MakeRequestInternal(string url, string? referrer = null, string? clickButton = null)
|
protected 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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user