mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-23 03:24:15 +02:00
Fix FlareSolverr IsJson-Check
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http.Headers;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Text.Json;
|
||||||
using HtmlAgilityPack;
|
using HtmlAgilityPack;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
@ -168,7 +168,7 @@ public class FlareSolverrDownloadClient : DownloadClient
|
|||||||
HtmlNode pre = document.DocumentNode.SelectSingleNode("//pre");
|
HtmlNode pre = document.DocumentNode.SelectSingleNode("//pre");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
JObject.Parse(pre.InnerText);
|
JsonDocument.Parse(pre.InnerText);
|
||||||
jsonString = pre.InnerText;
|
jsonString = pre.InnerText;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user