From 6a4f6e3638f7c381895f77b6863d68cdc49fc8ea Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 29 Aug 2017 11:56:10 +0200 Subject: [PATCH] ReleaseInfo: ignore Origin during JSON serialization --- src/Jackett/Models/ReleaseInfo.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Jackett/Models/ReleaseInfo.cs b/src/Jackett/Models/ReleaseInfo.cs index 5e7c8da9c..78bf7b23a 100644 --- a/src/Jackett/Models/ReleaseInfo.cs +++ b/src/Jackett/Models/ReleaseInfo.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Linq; using Jackett.Indexers; +using Newtonsoft.Json; namespace Jackett.Models { @@ -32,6 +33,7 @@ namespace Jackett.Models public long? MinimumSeedTime { get; set; } public double? DownloadVolumeFactor { get; set; } public double? UploadVolumeFactor { get; set; } + [JsonIgnore] // don't export the Origin to the manul search API, otherwise each result line contains a full recursive indexer JSON structure public IIndexer Origin; public double? Gain