core: refactor http webclient part 1 #8529 (#7652)

Rename WebClientStringResult.Content to WebClientStringResult.ContentString
This commit is contained in:
Cory
2020-06-09 19:36:57 +02:00
committed by ngosang
parent df02034197
commit 0bdcfd1e7b
90 changed files with 380 additions and 380 deletions

View File

@@ -180,9 +180,9 @@ namespace Jackett.Common.Indexers
// Get the content from the tracker
var response = await RequestStringWithCookiesAndRetry(queryUrl);
if (!response.Content.StartsWith("{")) // not JSON => error
if (!response.ContentString.StartsWith("{")) // not JSON => error
throw new ExceptionWithConfigData("unexcepted response (not JSON)", configData);
dynamic json = JsonConvert.DeserializeObject<dynamic>(response.Content);
dynamic json = JsonConvert.DeserializeObject<dynamic>(response.ContentString);
// Parse
try
@@ -418,7 +418,7 @@ namespace Jackett.Common.Indexers
}
catch (Exception ex)
{
OnParseError(response.Content, ex);
OnParseError(response.ContentString, ex);
}
// Add to the cache