mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
Cleanup Conflicts in Sonarr/Lidarr Pulls
Co-Authored-By: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com>
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Readarr.Api.V1.Queue
|
||||
|
||||
public static class QueueResourceMapper
|
||||
{
|
||||
public static QueueResource ToResource(this NzbDrone.Core.Queue.Queue model, bool includeArtist, bool includeAlbum)
|
||||
public static QueueResource ToResource(this NzbDrone.Core.Queue.Queue model, bool includeAuthor, bool includeBook)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
@@ -50,8 +50,8 @@ namespace Readarr.Api.V1.Queue
|
||||
Id = model.Id,
|
||||
AuthorId = model.Author?.Id,
|
||||
BookId = model.Book?.Id,
|
||||
Author = includeArtist && model.Author != null ? model.Author.ToResource() : null,
|
||||
Book = includeAlbum && model.Book != null ? model.Book.ToResource() : null,
|
||||
Author = includeAuthor && model.Author != null ? model.Author.ToResource() : null,
|
||||
Book = includeBook && model.Book != null ? model.Book.ToResource() : null,
|
||||
Quality = model.Quality,
|
||||
Size = model.Size,
|
||||
Title = model.Title,
|
||||
|
||||
Reference in New Issue
Block a user