From 71ad32de3134bd8a75fcd8f11faf8ab1c6df8f24 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 17 Jun 2025 18:51:29 +0200 Subject: [PATCH] Fix FlareSolverr IsJson-Check --- API/MangaDownloadClients/FlareSolverrDownloadClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/MangaDownloadClients/FlareSolverrDownloadClient.cs b/API/MangaDownloadClients/FlareSolverrDownloadClient.cs index 8b66bd4..23fd4fe 100644 --- a/API/MangaDownloadClients/FlareSolverrDownloadClient.cs +++ b/API/MangaDownloadClients/FlareSolverrDownloadClient.cs @@ -1,7 +1,7 @@ using System.Diagnostics.CodeAnalysis; using System.Net; -using System.Net.Http.Headers; using System.Text; +using System.Text.Json; using HtmlAgilityPack; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -168,7 +168,7 @@ public class FlareSolverrDownloadClient : DownloadClient HtmlNode pre = document.DocumentNode.SelectSingleNode("//pre"); try { - JObject.Parse(pre.InnerText); + JsonDocument.Parse(pre.InnerText); jsonString = pre.InnerText; return true; }