New: Add Content Summary for requests to apps

pull/1820/head
Bogdan 1 year ago
parent fc4a0979c3
commit bcb8afadf8

@ -84,6 +84,7 @@ namespace NzbDrone.Core.Applications.Lidarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -104,6 +105,7 @@ namespace NzbDrone.Core.Applications.Lidarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/{indexer.Id}", HttpMethod.Put);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -124,6 +126,7 @@ namespace NzbDrone.Core.Applications.Lidarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/test", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
var applicationVersion = _httpClient.Post(request).Headers.GetSingleValue("X-Application-Version");

@ -85,6 +85,7 @@ namespace NzbDrone.Core.Applications.Radarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -105,6 +106,7 @@ namespace NzbDrone.Core.Applications.Radarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/{indexer.Id}", HttpMethod.Put);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -125,6 +127,7 @@ namespace NzbDrone.Core.Applications.Radarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/test", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
var applicationVersion = _httpClient.Post(request).Headers.GetSingleValue("X-Application-Version");

@ -81,6 +81,7 @@ namespace NzbDrone.Core.Applications.Readarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -101,6 +102,7 @@ namespace NzbDrone.Core.Applications.Readarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/{indexer.Id}", HttpMethod.Put);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -121,6 +123,7 @@ namespace NzbDrone.Core.Applications.Readarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/test", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
_httpClient.Post(request);

@ -84,6 +84,7 @@ namespace NzbDrone.Core.Applications.Sonarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -104,6 +105,7 @@ namespace NzbDrone.Core.Applications.Sonarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/{indexer.Id}", HttpMethod.Put);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -124,6 +126,7 @@ namespace NzbDrone.Core.Applications.Sonarr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/test", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
var applicationVersion = _httpClient.Post(request).Headers.GetSingleValue("X-Application-Version");

@ -81,6 +81,7 @@ namespace NzbDrone.Core.Applications.Whisparr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -99,6 +100,7 @@ namespace NzbDrone.Core.Applications.Whisparr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/{indexer.Id}", HttpMethod.Put);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
try
{
@ -119,6 +121,7 @@ namespace NzbDrone.Core.Applications.Whisparr
var request = BuildRequest(settings, $"{AppIndexerApiRoute}/test", HttpMethod.Post);
request.SetContent(indexer.ToJson());
request.ContentSummary = indexer.ToJson(Formatting.None);
_httpClient.Post(request);

Loading…
Cancel
Save