You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-07-17 01:32:30 +02: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:
@ -166,6 +166,7 @@
|
|||||||
<Compile Include="Mapping\ResourceMappingException.cs" />
|
<Compile Include="Mapping\ResourceMappingException.cs" />
|
||||||
<Compile Include="Mapping\ValueInjectorExtensions.cs" />
|
<Compile Include="Mapping\ValueInjectorExtensions.cs" />
|
||||||
<Compile Include="Series\AlternateTitleResource.cs" />
|
<Compile Include="Series\AlternateTitleResource.cs" />
|
||||||
|
<Compile Include="Series\SeasonResource.cs" />
|
||||||
<Compile Include="System\Backup\BackupModule.cs" />
|
<Compile Include="System\Backup\BackupModule.cs" />
|
||||||
<Compile Include="System\Backup\BackupResource.cs" />
|
<Compile Include="System\Backup\BackupResource.cs" />
|
||||||
<Compile Include="Update\UpdateResource.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;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using NzbDrone.Api.REST;
|
using NzbDrone.Api.REST;
|
||||||
using NzbDrone.Core.MediaCover;
|
using NzbDrone.Core.MediaCover;
|
||||||
using NzbDrone.Core.Tv;
|
using NzbDrone.Core.Tv;
|
||||||
@ -40,7 +41,7 @@ namespace NzbDrone.Api.Series
|
|||||||
public List<MediaCover> Images { get; set; }
|
public List<MediaCover> Images { get; set; }
|
||||||
|
|
||||||
public String RemotePoster { get; set; }
|
public String RemotePoster { get; set; }
|
||||||
public List<Season> Seasons { get; set; }
|
public List<SeasonResource> Seasons { get; set; }
|
||||||
public Int32 Year { get; set; }
|
public Int32 Year { get; set; }
|
||||||
|
|
||||||
//View & Edit
|
//View & Edit
|
||||||
|
Reference in New Issue
Block a user