From ea37e81ece8c191f7dbf4d556e1bb64f9f69d774 Mon Sep 17 00:00:00 2001 From: Glax Date: Tue, 20 Aug 2024 20:53:03 +0200 Subject: [PATCH] Fix last commit --- Tranga/MangaConnectors/ChromiumDownloadClient.cs | 3 +-- Tranga/MangaConnectors/HttpDownloadClient.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Tranga/MangaConnectors/ChromiumDownloadClient.cs b/Tranga/MangaConnectors/ChromiumDownloadClient.cs index c63e85a..d7e6523 100644 --- a/Tranga/MangaConnectors/ChromiumDownloadClient.cs +++ b/Tranga/MangaConnectors/ChromiumDownloadClient.cs @@ -3,7 +3,6 @@ using System.Text; using System.Text.RegularExpressions; using HtmlAgilityPack; using PuppeteerSharp; -using PuppeteerSharp.Input; namespace Tranga.MangaConnectors; @@ -12,7 +11,7 @@ internal class ChromiumDownloadClient : DownloadClient private IBrowser browser { get; set; } private const string ChromiumVersion = "1154303"; private const int StartTimeoutMs = 30000; - private HttpDownloadClient _httpDownloadClient; + private readonly HttpDownloadClient _httpDownloadClient; private async Task DownloadBrowser() { diff --git a/Tranga/MangaConnectors/HttpDownloadClient.cs b/Tranga/MangaConnectors/HttpDownloadClient.cs index 46a0008..3b2e5c3 100644 --- a/Tranga/MangaConnectors/HttpDownloadClient.cs +++ b/Tranga/MangaConnectors/HttpDownloadClient.cs @@ -16,7 +16,7 @@ internal class HttpDownloadClient : DownloadClient 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) Log("Can not click button on static site.");