mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
Fixed: do not send season images in json requests for series
This can save a significant amount of data on the wire, for something never used
This commit is contained in:
parent
d64c4445b8
commit
9b17a3787d
@ -166,6 +166,7 @@
|
||||
<Compile Include="Mapping\ResourceMappingException.cs" />
|
||||
<Compile Include="Mapping\ValueInjectorExtensions.cs" />
|
||||
<Compile Include="Series\AlternateTitleResource.cs" />
|
||||
<Compile Include="Series\SeasonResource.cs" />
|
||||
<Compile Include="System\Backup\BackupModule.cs" />
|
||||
<Compile Include="System\Backup\BackupResource.cs" />
|
||||
<Compile Include="Update\UpdateResource.cs" />
|
||||
|
13
src/NzbDrone.Api/Series/SeasonResource.cs
Normal file
13
src/NzbDrone.Api/Series/SeasonResource.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Api.Series
|
||||
{
|
||||
public class SeasonResource
|
||||
{
|
||||
public int SeasonNumber { get; set; }
|
||||
public Boolean Monitored { get; set; }
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using NzbDrone.Api.REST;
|
||||
using NzbDrone.Core.MediaCover;
|
||||
using NzbDrone.Core.Tv;
|
||||
@ -40,7 +41,7 @@ public Int32 SeasonCount
|
||||
public List<MediaCover> Images { get; set; }
|
||||
|
||||
public String RemotePoster { get; set; }
|
||||
public List<Season> Seasons { get; set; }
|
||||
public List<SeasonResource> Seasons { get; set; }
|
||||
public Int32 Year { get; set; }
|
||||
|
||||
//View & Edit
|
||||
|
Loading…
Reference in New Issue
Block a user