ReleaseInfo: ignore Origin during JSON serialization

This commit is contained in:
kaso17 2017-08-29 11:56:10 +02:00
parent 157b042c0a
commit 6a4f6e3638
1 changed files with 2 additions and 0 deletions

View File

@ -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