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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user