1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00

Show unknown items in queue

New: Download items from unknown series now appear on the queue and can be imported with Manual Import.
This commit is contained in:
Taloth Saldono
2015-07-12 00:55:43 +02:00
parent 5f6f4915a1
commit de61ecbfd2
8 changed files with 52 additions and 34 deletions
+7 -7
View File
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Download.TrackedDownloads;
@@ -12,8 +12,8 @@ namespace Sonarr.Api.V3.Queue
{
public class QueueResource : RestResource
{
public int SeriesId { get; set; }
public int EpisodeId { get; set; }
public int? SeriesId { get; set; }
public int? EpisodeId { get; set; }
public SeriesResource Series { get; set; }
public EpisodeResource Episode { get; set; }
public QualityModel Quality { get; set; }
@@ -41,10 +41,10 @@ namespace Sonarr.Api.V3.Queue
return new QueueResource
{
Id = model.Id,
SeriesId = model.Series.Id,
EpisodeId = model.Episode.Id,
Series = includeSeries ? model.Series.ToResource() : null,
Episode = includeEpisode ? model.Episode.ToResource() : null,
SeriesId = model.Series?.Id,
EpisodeId = model.Episode?.Id,
Series = includeSeries && model.Series != null ? model.Series.ToResource() : null,
Episode = includeEpisode && model.Episode != null ? model.Episode.ToResource() : null,
Quality = model.Quality,
Size = model.Size,
Title = model.Title,