fixed add new series

pull/4/head
kay.one 12 years ago
parent a77a529969
commit 29ca16ce77

@ -2,6 +2,7 @@
using System.IO;
using Nancy;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Api.Extensions
{

@ -3,6 +3,7 @@ using System.IO;
using Nancy;
using Nancy.Responses;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Api.Extensions
{

@ -8,10 +8,10 @@ namespace NzbDrone.Api.SignalR
[Singleton]
public class Serializer : IJsonSerializer
{
private readonly Common.IJsonSerializer _nzbDroneSerializer;
private readonly Common.Serializer.IJsonSerializer _nzbDroneSerializer;
private readonly JsonNetSerializer _signalRSerializer;
public Serializer(Common.IJsonSerializer nzbDroneSerializer)
public Serializer(Common.Serializer.IJsonSerializer nzbDroneSerializer)
{
_signalRSerializer = new JsonNetSerializer();
_nzbDroneSerializer = nzbDroneSerializer;

@ -4,7 +4,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace NzbDrone.Common
namespace NzbDrone.Common.Serializer
{
public interface IJsonSerializer
{
@ -24,7 +24,7 @@ namespace NzbDrone.Common
_jsonNetSerializer = new Newtonsoft.Json.JsonSerializer()
{
DateTimeZoneHandling = DateTimeZoneHandling.Utc,
NullValueHandling = NullValueHandling.Include,
NullValueHandling = NullValueHandling.Ignore,
Formatting = Formatting.Indented,
DefaultValueHandling = DefaultValueHandling.Include,
ContractResolver = new CamelCasePropertyNamesContractResolver()

@ -120,7 +120,7 @@
<Compile Include="Expansive\Tree.cs" />
<Compile Include="Expansive\TreeNode.cs" />
<Compile Include="Expansive\TreeNodeList.cs" />
<Compile Include="IJsonSerializer.cs" />
<Compile Include="Serializer\JsonSerializer.cs" />
<Compile Include="Instrumentation\VersionLayoutRenderer.cs" />
<Compile Include="Messaging\MessageExtensions.cs" />
<Compile Include="Messaging\TestCommand.cs" />

@ -4,6 +4,7 @@ using FluentAssertions;
using Marr.Data;
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Datastore.Converters;
using NzbDrone.Core.Tv;

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using NLog;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Configuration;
namespace NzbDrone.Core.DataAugmentation.DailySeries

@ -1,5 +1,6 @@
using System.Collections.Generic;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Configuration;
namespace NzbDrone.Core.DataAugmentation.Scene

@ -2,6 +2,7 @@
using Marr.Data.Converters;
using Marr.Data.Mapping;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Core.Datastore.Converters
{

@ -4,6 +4,7 @@ using System.Linq;
using Marr.Data;
using Marr.Data.Mapping;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.DataAugmentation.Scene;
using NzbDrone.Core.Datastore.Converters;

@ -1,4 +1,5 @@
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Core.Indexers
{

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Core.Indexers.Newznab
{

@ -4,6 +4,7 @@ using FluentAssertions;
using NLog;
using NzbDrone.Api.REST;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using RestSharp;
namespace NzbDrone.Integration.Test.Client

@ -1,5 +1,6 @@
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Test.Common;
namespace NzbDrone.Libraries.Test.Json

@ -6,6 +6,7 @@ using NLog;
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Messaging;
using NzbDrone.Common.Serializer;
using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Test.Common

@ -18,7 +18,7 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'AddSeries/New/Sear
this.collection.parse = function (response) {
_.each(response, function (model) {
model.id = null;
model.id = undefined;
});
return response;

Loading…
Cancel
Save