mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Merge string/byte request code
This commit is contained in:
@@ -12,6 +12,7 @@ using Jackett.Common.Models;
|
||||
using Jackett.Common.Models.IndexerConfig.Bespoke;
|
||||
using Jackett.Common.Services.Interfaces;
|
||||
using Jackett.Common.Utils;
|
||||
using Jackett.Common.Utils.Clients;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NLog;
|
||||
@@ -179,7 +180,7 @@ namespace Jackett.Common.Indexers
|
||||
}
|
||||
|
||||
// Get the content from the tracker
|
||||
var response = await RequestStringWithCookiesAndRetry(queryUrl);
|
||||
var response = await RequestWithCookiesAndRetryAsync(queryUrl);
|
||||
if (!response.ContentString.StartsWith("{")) // not JSON => error
|
||||
throw new ExceptionWithConfigData("unexcepted response (not JSON)", configData);
|
||||
dynamic json = JsonConvert.DeserializeObject<dynamic>(response.ContentString);
|
||||
|
Reference in New Issue
Block a user