Download clients now use thingy provider

This commit is contained in:
Mark McDowall
2014-02-13 21:31:49 -08:00
parent ba22600412
commit 606d78f5e1
123 changed files with 2076 additions and 1820 deletions

View File

@@ -23,6 +23,13 @@ namespace NzbDrone.Core.Queue
public List<Queue> GetQueue()
{
var downloadClient = _downloadClientProvider.GetDownloadClient();
if (downloadClient == null)
{
_logger.Trace("Download client is not configured.");
return new List<Queue>();
}
var queueItems = downloadClient.GetQueue();
return MapQueue(queueItems);