1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

New: Improved Plex Media Server authentication (Manually update settings)

This commit is contained in:
Mark McDowall
2018-06-05 00:39:15 -07:00
committed by Taloth Saldono
parent 897f3fea99
commit 07be9cf47a
34 changed files with 602 additions and 402 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using FluentValidation;
using FluentValidation.Results;
@@ -8,6 +8,7 @@ using NzbDrone.Common.Reflection;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
using Newtonsoft.Json;
using NzbDrone.Common.Serializer;
using Sonarr.Http;
using Sonarr.Http.ClientSchema;
using Sonarr.Http.Mapping;
@@ -191,7 +192,7 @@ namespace NzbDrone.Api
var query = ((IDictionary<string, object>)Request.Query.ToDictionary()).ToDictionary(k => k.Key, k => k.Value.ToString());
var data = _providerFactory.RequestAction(providerDefinition, action, query);
Response resp = JsonConvert.SerializeObject(data);
Response resp = data.ToJson();
resp.ContentType = "application/json";
return resp;
}