mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
Queue actions
New: Remove items from queue/history from Activity New: Force import of series title mismatch from Activity
This commit is contained in:
@@ -8,6 +8,7 @@ namespace NzbDrone.Core.Queue
|
||||
public interface IQueueService
|
||||
{
|
||||
List<Queue> GetQueue();
|
||||
Queue Find(int id);
|
||||
}
|
||||
|
||||
public class QueueService : IQueueService
|
||||
@@ -28,6 +29,11 @@ namespace NzbDrone.Core.Queue
|
||||
return MapQueue(queueItems);
|
||||
}
|
||||
|
||||
public Queue Find(int id)
|
||||
{
|
||||
return GetQueue().SingleOrDefault(q => q.Id == id);
|
||||
}
|
||||
|
||||
private List<Queue> MapQueue(IEnumerable<TrackedDownload> trackedDownloads)
|
||||
{
|
||||
var queued = new List<Queue>();
|
||||
|
||||
Reference in New Issue
Block a user